backend routes - Orenshaf/SoundProud GitHub Wiki
-
GET /StaticPagesController#root
-
GET /api/users- returns the user information of uploaded and liked tracks and for the User Search feature -
POST /api/users- sign up
-
POST /api/session- log in -
DELETE /api/session- log out
-
GET /api/tracks- returns relevant tracks (filtered bydata/params) -
GET /api/tracks/:id- returns tracks -
POST /api/tracks- creates a track -
PATCH /api/tracks/:id- edit a track -
DELETE /api/tracks/:id- remove a track
-
GET /api/comments- gets all comments -
POST /api/comments- creates a comment -
DELETE /api/comments/:id- remove a comment
###BONUS!
-
GET /api/likes- gets all likes -
POST /api/likes- like a track -
DELETE /api/likes- unlike a track
Note: comments and likes do not include a GET route because we will have these routes render the api/tracks/show.json.jbuilder view. See Sample State.3