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 - Login
  • DELETE /api/session - Logout

Songs

  • GET /api/songs - Get the songs for a user in the profile page or in an album
  • GET /api/songs/:id - Get a specific song
  • DELETE /api/songs/:id - Delete the song
  • POST /api/songs/ - Create a new song
  • 
    

Comments

  • GET /api/comments - Retrieve the comments of a song for the song page
  • GET /api/comments/:id - Get one comment
  • POST /api/comments - Post the comment on the song page
  • PATCH /api/comments/:id - Update the Comment on the song page
  • DELETE /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