api documentation - earlwoo/Welp GitHub Wiki
API-Routes
This web app uses the following API routes to return data from the database and update the redux store.
Users
-
Sign Up
POST /users/signup
-
Log In
POST /session/login
-
Log Out
DELETE /session/logout
-
Get all users
- `GET /users
Restaurants
GET /restaurants
- Gets all the restaurants from the database
Reviews
GET /reviews
- Gets all reviews for restaurantPOST /reviews
- Posts a new reviewPUT /reviews/:reviewId
- Updates a specific reviewDELETE /reviews
- Deletes a review