Skip to content

Backend Routes

srajiang edited this page Jan 7, 2020 · 3 revisions

HTML

  • GET / StaticPagesController#root

API Endpoints

users

  • POST /api/users - create user

session

  • POST /api/session log in
  • DELETE /api/session log out

songs

  • GET /api/songs/:song_id get song details
  • POST /api/songs/ create a new song
  • UPDATE /api/songs/:song_id edit a songs lyrics

There is no delete feature for songs.

artists

  • GET /api/artists/:artist_id get artist details

artists

  • GET /api/albums/:album_id get album details

annotations

  • GET /api/annotations/:annot_id get song annotation
  • POST /api/annotations/ create a song annotation

referents

  • GET /api/referents/:ref_id get referents
  • POST /api/referents create a new referent

This is the wiki for the genius app clone. Please use the bulleted legend to view the various design documents related to this project!

Clone this wiki locally