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`, and `endDate` for each booking - [ ] If you ARE the owner of the spot, booking data returned includes the `id` `spotId`, `userId`, `startDate`, `endDate`, `createdAt`, and `updatedAt` for each booking - [ ] If you ARE the owner of the spot, booking data returns associated data for `User`, including the `id`, `firstName`, and `lastName` - [ ] Error response with status 404 is given when a spot does not exist with the provided `id`
Return all the bookings for a spot specified by id.
spotId,startDate, andendDatefor each bookingidspotId,userId,startDate,endDate,createdAt, andupdatedAtforeach booking
User, including theid,firstName, andlastNamethe provided
id