Skip to content

Backend Routes

Schploink edited this page Jun 1, 2021 · 3 revisions

Backend Routes

HTML

  • GET / StaticPagesController#root

API Endpoints

users

  • GET /api/users - returns the user information of sounds and for User Search
  • POST /api/users - sign up

session

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

sounds

  • GET /api/sounds - returns a list of sounds
  • GET /api/sounds/:id - returns a specific sound
  • POST /api/sounds - creates a sound
  • PATCH /api/sounds/:id - edit a sound
  • DELETE /api/sounds/:id - remove a sound

comments

  • POST /api/comments - create a comment
  • PATCH /api/comments/:id - edit a comment
  • DELETE /api/comments/:id - delete a comment
Clone this wiki locally