backend routes - cgradeff/Spelled GitHub Wiki

HTML

  • GET / StaticPagesController#root

API Endpoints

users

  • GET /api/users/:id - returns the user information of displayed listings
  • POST /api/users - sign up

session

  • POST /api/session - login
  • DELETE /api/session - logout

listings

  • GET /api/listings - returns relevant listings (filtered by data/params)
  • GET /api/listings/:id - returns listing
  • POST /api/listings - creates a listing
  • PATCH /api/listings/:id - edit a listing
  • DELETE /api/listings/:id - remove a listing

messages

  • GET /api/listings - returns relevant messages
  • GET /api/listings/:id - returns message

reviews

  • GET /api/reviews/:user_id - returns relevant messages

comments

  • GET /api/comments/:list_id - returns relevant comments of a listing
  • POST /api/comments/:list_id - creates a comment on a listing

favorites

  • GET /api/favorites - returns relevant favorites
  • POST /api/favorites - creates a favorite
  • DELETE /api/favorites/:id - remove a favorite
⚠️ **GitHub.com Fallback** ⚠️