Body
The model containing review details.
-
Title of the review
-
Content of the review (optional)
-
Rating for the hotel (1-5)
This endpoint allows users to submit a review for a particular hotel identified by the provided hotelId.
Sample request:
POST /hotels/{hotelId}/reviews { "Title": "Amazing Experience", "Description": "The hotel provided exceptional service and comfortable accommodations.", "Rating": 5 }
The model containing review details.
Title of the review
Content of the review (optional)
Rating for the hotel (1-5)
curl \
-X POST http://api.example.com/api/hotels/{hotelId}/reviews \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"title":"string","description":"string","rating":42}'
curl \
-X POST http://api.example.com/api/hotels/{hotelId}/reviews \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: text/json"
curl \
-X POST http://api.example.com/api/hotels/{hotelId}/reviews \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/*+json"
{
"title": "string",
"description": "string",
"rating": 42
}
{
"title": "string",
"description": "string",
"rating": 42
}
{
"title": "string",
"description": "string",
"rating": 42
}