As a consumer of the properties API, I want to be able to retrieve reviews for listed properties so that I can read through the feedback from previous guests.
Acceptance Criteria
[ ] API endpoint to list reviews for a property is available.
[ ] Each review contains the reviewer’s name, rating, and comment.
[ ] Reviews are sorted by the most recent.
[ ] Filter to get reviews of a certain rating (e.g., 4 or 5 stars).
[ ] Paginate the list of reviews to support large numbers of reviews.
[ ] Rate limiting is implemented to prevent abuse.
[ ] Adequate security measures are in place to protect the data.
[ ] Error handling is properly managed to return informative error messages.
sequenceDiagram
participant Client
participant ReviewService
Client->>ReviewService: Request reviews for property {property_id}
ReviewService-->>Client: List of reviews
Reviews API Specification
As a consumer of the properties API, I want to be able to retrieve reviews for listed properties so that I can read through the feedback from previous guests.
Acceptance Criteria