Backend routes
nsansone edited this page Jul 26, 2019
·
1 revision
- GET/ StaticPagesController#root
- SHOW /api/users/:id -user profile
- POST /api/users -sign up
- POST /api/session -sign in
- DELETE /api/session -sign out
- GET /api/restaurants -show all restaurants
- GET /api/restaurants/:id -show page for specific restaurant
- GET /api/restaurants/:id/reviews -show all reviews for specific restaurants
- POST /api/restaurants/:id/reviews -create a review for a specific restaurant
- PATCH /api/restaurants/:id/reviews -edit a review for a specific restaurant
- DELETE /api/restaurants/:id/reviews -delete a review for a specific restaurant
- GET /api/favorites - show all favorites for a logged-in user
- POST /api/favorites -add a favorite for a logged-in user
- DELETE /api/favorites -delete a favorite for a logged-in user