Backend routes - nsansone/OpenRes GitHub Wiki
HTML
- GET/ StaticPagesController#root
users
- SHOW /api/users/:id -user profile
- POST /api/users -sign up
session
- POST /api/session -sign in
- DELETE /api/session -sign out
restaurants
- GET /api/restaurants -show all restaurants
- GET /api/restaurants/:id -show page for specific restaurant
reviews
- 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
favorites
- 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