Skip to content

Backend

Anuj Gupta edited this page Dec 29, 2021 · 4 revisions

Backend Routes

HTML

  • GET / - StaticPagesController#root

API Endpoints

Users

  • GET /api/users/:id - Returns the user information for the User search feature
  • POST /api/users - Signs up a user

Session

  • POST api/session - Log in
  • DELETE api/session - Log out

Songs

  • GET api/tracks/:id - Returns a song
  • POST api/tracks - Create a new song
  • PATCH api/tracks/:id - Updates a song
  • DELETE api/tracks/:id - Deletes a track

Comments

  • POST /api/comments - Creates a comment
  • DELETE /api/comments/:comment_id - Deletes a comment

Clone this wiki locally