Skip to content

Backend Routes

Rudy edited this page Apr 10, 2019 · 5 revisions

HTML

GET / Single HTML page for the React container

API Endpoints

Users

POST /api/users - Sign Up a new user

POST /api/session - Log in an existing user

DELETE /api/session - Log out an existing user

Restaurants

GET /api/restaurants - Get abbreviated list of all restaurants for quick searching

GET /api/restaurants/:id - Get full information for a specific restaurant, including reviews

Reviews

POST /api/reviews - Create a review for an existing restaurant

PUT /api/reviews - Edit a review for an existing restaurant

DELETE /api/review - Remove a review for an existing restaurant

Clone this wiki locally