Backend Routes - R-S-W/Resound GitHub Wiki
HTML
GET / StaticPagesController#root
API Endpoints
Users
GET /api/users
- Gets all of the users in the db---POST /api/users
- Sign Up *GET /api/users/:id
- Get a user page
Session
POST /api/session
- LoginDELETE /api/session
- Logout
Songs
GET /api/songs
- Get the songs for a user in the profile page or in an albumGET /api/songs/:id
- Get a specific songDELETE /api/songs/:id
- Delete the songPOST /api/songs/
- Create a new song-
Comments
GET /api/comments
- Retrieve the comments of a song for the song pageGET /api/comments/:id
- Get one commentPOST /api/comments
- Post the comment on the song pagePATCH /api/comments/:id
- Update the Comment on the song pageDELETE /api/comments/:id
- Delete the comment
Albums
GET /api/albums
- retrieve the albums of the user in the user Profile Page.
GET /api/albums/:id
- get an album
POST /api/albums/
- Create a new album
PATCH /api/albums/:id
- Update an album
DELETE /api/albums/:id
- Delete an album