routes - Priya67/onetouchBnB GitHub Wiki

Users

POST /api/session - login
DELETE /api/session - logout
POST /api/users - signup
GET /api/users - show

Spots

GET /api/spots - view all spots (also serialize the reviews)
GET /api/spots/:id - gets a specific spot (also serialize booking dates)

Bookings

GET /api/bookings - to get current user's bookings
POST /api/bookings - to create a booking and list it with all current user's bookings
DELETE /api/bookings/:id - delete a specific booking (optional)

Reviews

GET /api/reviews - fetch all of the reviews on the current user's properties
POST /api/reviews - create a review