Skip to content

Backend Routes

junnac edited this page Nov 5, 2019 · 7 revisions

HTML

  • GET / StaticPagesController#root

API Endpoints

users

  • GET /api/users/:id - returns user profile and list of favorite breweries
  • POST /api/users - sign up

session

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

breweries

  • GET /api/breweries - returns relevant breweries

guides

  • GET /api/guides - returns list of all guides
  • GET /api/guides/:id - return specific guide show page

favorites

  • POST /api/breweries/:brewery_id/favorites - favorites a brewery
  • DELETE /api/breweries/:brewery_id/favorites - removes a favorite
Clone this wiki locally