Skip to content

Backend Routes

kangaree edited this page Jan 18, 2019 · 2 revisions

Backend Routes

HTML

  • GET / StaticPagesController#root

API Endpoints

users

  • GET /api/users - returns the user info and user reviews and lists
  • POST /api/users - sign up

session

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

shows

  • GET /api/shows - return info from shows (filtered by data/params)
  • GET /api/shows/:id - returns info for a show

reviews

  • GET /api/reviews/:id - returns info for review
  • POST /api/reviews - add review to show
  • PATCH /api/reviews/:id - update review
  • DELETE /api/reviews/:id - delete review

lists

  • GET /api/lists/:id - returns info for a list
  • POST /api/lists - create a list
  • PATCH /api/lists/:id - edit a list
  • DELETE /api/lists/:id - delete list

watch_statuses

  • POST /api/watch_statuses - add a watch status
  • PATCH /api/watch_statuses/:id- edit watch-status

Clone this wiki locally