-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Return all the bookings for a spot specified by id.
- An authenticated user is required for a successful response
- Seed data exists in the database for bookings to be returned.
- Successful response includes only bookings for the specified spot
- If you are NOT the owner of the spot, booking data returned includes the
spotId,startDate, andendDatefor each booking - If you ARE the owner of the spot, booking data returned includes the
id
spotId,userId,startDate,endDate,createdAt, andupdatedAtfor
each booking - If you ARE the owner of the spot, booking data returns associated data for
User, including theid,firstName, andlastName - Error response with status 404 is given when a spot does not exist with
the providedid
Metadata
Metadata
Assignees
Labels
No labels