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

Create a Review for a Spot based on the Spot's id #11

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

Create a Review for a Spot based on the Spot's id #11

bssammel opened this issue Sep 19, 2023 · 0 comments

Comments

@bssammel
Copy link
Owner

Create and return a new review for a spot specified by id.

  • An authenticated user is required for a successful response
  • New review exists in the database after request
  • Review data returned includes the id, userId, spotId, review, stars, createdAt, and updatedAt
  • Error response with status 400 is given when body validations for the review or stars are violated
  • Error response with status 404 is given when a spot does not exist with the provided id
  • Error response with status 403 is given when a review already exists for the spot from the current user
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