This endpoint is currently under development. The implementation is not yet complete.
Endpoint
Request Body
The unique identifier of the completed booking to review.Example:
3fa85f64-5717-4562-b3fc-2c963f66afa6Rating score for the apartment and experience. Must be between 1 and 5.
1- Poor2- Fair3- Good4- Very Good5- Excellent
5Written review comment describing the experience. Should provide helpful feedback for other users.Example:
Amazing apartment with stunning views! The host was very responsive and the location was perfect.Response
Currently returns a simple success response while the feature is being completed.Example Request
Example Response
Status Code:200 OK
Error Responses
400 Bad Request
Returned when the request contains invalid data or violates business rules.Validation.Error- Invalid request parametersReview.InvalidRating- Rating is not between 1 and 5Review.CommentTooShort- Comment must have minimum lengthReview.CommentTooLong- Comment exceeds maximum lengthBooking.NotFound- The specified booking does not existBooking.NotCompleted- Cannot review a booking that hasn’t been completedReview.AlreadyExists- A review has already been submitted for this bookingReview.NotAuthorized- You can only review your own bookings
401 Unauthorized
Returned when the request lacks valid authentication credentials.500 Internal Server Error
Returned when an unexpected server error occurs.Usage Notes
- Reviews can only be submitted for completed bookings (status = 4)
- Each booking can only be reviewed once
- You can only review bookings that belong to your user account
- Rating must be an integer between 1 and 5 (inclusive)
- Comment should be constructive and helpful for other users
Review Guidelines
Rating Scale
| Rating | Label | Description |
|---|---|---|
| 1 | Poor | Significant issues, would not recommend |
| 2 | Fair | Below expectations, some problems |
| 3 | Good | Meets expectations, satisfactory experience |
| 4 | Very Good | Exceeds expectations, highly satisfied |
| 5 | Excellent | Outstanding experience, highly recommend |
Writing Good Reviews
Helpful reviews should:- Be specific about what you liked or disliked
- Mention accuracy of the listing description
- Comment on cleanliness and maintenance
- Describe the location and neighborhood
- Evaluate communication with the host
- Note any amenities that stood out
- Be honest but respectful
Example Reviews
Excellent Review (5 stars):Review Workflow
- Complete your stay - Booking status must be “Completed”
- Submit review - Use this endpoint within a reasonable timeframe
- Review published - Your review becomes visible to other users
- Host can respond - The host may respond to your review (future feature)
Related Endpoints
- Get Booking - Check booking status before reviewing
- Reserve Booking - Create a booking
- Search Apartments - Browse apartments and read reviews