GET /api/hotels/{hotelId}/reviews/{reviewId}

Path parameters

  • hotelId string(uuid) Required

    The id of the hotel

  • reviewId string(uuid) Required

    The id of the review

Responses

  • Returns the review with the given id

    Hide response attributes Show response attributes object
    • id string(uuid)
    • title string | null
    • description string | null
    • rating integer(int32)
    • creationDate string(date-time)
    • lastModified string(date-time)
    • guest object
      Hide guest attributes Show guest attributes object
      • id string(uuid)
      • firstName string | null
      • lastName string | null
      • fullName string | null
      • numberOfBookings integer(int32)
      • Additional properties are NOT allowed
    • hotelId string(uuid)
    • hotelName string | null
    • Additional properties are NOT allowed
    Hide response attributes Show response attributes object
    • id string(uuid)
    • title string | null
    • description string | null
    • rating integer(int32)
    • creationDate string(date-time)
    • lastModified string(date-time)
    • guest object
      Hide guest attributes Show guest attributes object
      • id string(uuid)
      • firstName string | null
      • lastName string | null
      • fullName string | null
      • numberOfBookings integer(int32)
      • Additional properties are NOT allowed
    • hotelId string(uuid)
    • hotelName string | null
    • Additional properties are NOT allowed
    Hide response attributes Show response attributes object
    • id string(uuid)
    • title string | null
    • description string | null
    • rating integer(int32)
    • creationDate string(date-time)
    • lastModified string(date-time)
    • guest object
      Hide guest attributes Show guest attributes object
      • id string(uuid)
      • firstName string | null
      • lastName string | null
      • fullName string | null
      • numberOfBookings integer(int32)
      • Additional properties are NOT allowed
    • hotelId string(uuid)
    • hotelName string | null
    • Additional properties are NOT allowed
  • 404

    If the review is not found

GET /api/hotels/{hotelId}/reviews/{reviewId}
curl \
 -X GET http://api.example.com/api/hotels/{hotelId}/reviews/{reviewId} \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "id": "string",
  "title": "string",
  "description": "string",
  "rating": 42,
  "creationDate": "2024-05-04T09:42:00+00:00",
  "lastModified": "2024-05-04T09:42:00+00:00",
  "guest": {
    "id": "string",
    "firstName": "string",
    "lastName": "string",
    "fullName": "string",
    "numberOfBookings": 42
  },
  "hotelId": "string",
  "hotelName": "string"
}
Response examples (200)
{
  "id": "string",
  "title": "string",
  "description": "string",
  "rating": 42,
  "creationDate": "2025-05-04T09:42:00Z",
  "lastModified": "2025-05-04T09:42:00Z",
  "guest": {
    "id": "string",
    "firstName": "string",
    "lastName": "string",
    "fullName": "string",
    "numberOfBookings": 42
  },
  "hotelId": "string",
  "hotelName": "string"
}