Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get all Bookings for a Spot based on the Spot's id #19

Open
7 tasks
bssammel opened this issue Sep 19, 2023 · 0 comments
Open
7 tasks

Get all Bookings for a Spot based on the Spot's id #19

bssammel opened this issue Sep 19, 2023 · 0 comments

Comments

@bssammel
Copy link
Owner

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant