Backend Routes - KingApe714/TableOpen GitHub Wiki
Backend Routes
users
GET /api/users/:id - look up the user
POST /api/users - sign up
session
POST /api/session - signs in a user with an account
DELETE /api/session - signs out a signed in user
restaurants
GET /api/restaurants - returns a list of restaurants
GET /api/restaurants/:id - returns a specific restaurant
reviews
POST /api/reviews - rate a restaurant
DELETE /api/reviews - remove rating from restaurant
reservations
POST /api/reservations - make a reservation with a restaurant
DELETE /api/reservations/:id - remove a reservation with a restaurant
UPDATE /api/reservations/:id - update a reservation with a restaurant