Database Schema - stili87/Clear-BnB GitHub Wiki

Backend Routes
Users
GET /api/users
- Returns the information for all users
GET /api/users/id
- Returns the information for all users
Sessions
GET /api/auth/
- Returns the information for the logged in user
POST /api/auth/signup
- Signs up a new user
POST /api/auth/login
- Logs in a user
DELETE /api/auth
- Logs out a user
Properties
GET /api/properties
- Returns the information for all properties
POST /api/properties
- Creates a new Property
PUT /api/properties
- Edits Property Information
DELETE /api/properties
- Deletes a property
Reviews
GET /api/reviews
- Returns the information for all reviews
POST /api/reviews
- Creates a new Review
PUT /api/reviews
- Edits a review
DELETE /api/reviews
- Deletes a review
Bookings
GET /api/bookings
- Returns the information for all bookings
POST /api/bookings
- Creates a new booking
PUT /api/bookings
- Edits a bookings
DELETE /api/bookings
- Deletes a bookings
------ONLY IF ALL OTHER DONE----------
Likes
GET /api/likes
- Returns the information for all likes
POST /api/likes
- Creates a new like
DELETE /api/likes
- Deletes a like