Skip to content

Backend Routes

Michelle Naim edited this page Oct 8, 2020 · 4 revisions

Backend Routes

HTML

  • GET / StaticPagesController#root

API Endpoints

users

  • POST /api/users - sign up

session

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

movies

  • GET /api/movies - view all movies available

genres

  • GET /api/genres/:genreid - view all movies related to a specific genre

list

  • GET /api/list - view all movies in user's list
  • POST /api/list/:movieid - add a movie to the list
  • DELETE /api/list/:movieid - remove a movie from the list

Clone this wiki locally