-
Notifications
You must be signed in to change notification settings - Fork 0
API Routes
Kevin Bartolome edited this page May 24, 2022
·
6 revisions
- All users can read spots. Only logged in users can create, update, or delete their Spots
GET /spots
POST /spots
PUT /spots/:spotId
DELETE /spots/:spotId
- A logged in user can create, read, or delete their Bookings
- Users can only view their own Bookings and cannot view other users' Bookings
GET /bookings
POST /bookings
DELETE /bookings
- All users can read Reviews. Only logged in Users can create, update, or delete their Reviews
GET /reviews
POST /reviews
PUT /reviews/:spotId
DELETE /reviews/:spotId