Get Hotel by Id
GET
/api/v1/hotels/{hotel_id}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/v1/hotels/1'
Response Response Example
{
"status_code": 200,
"message": "Get Hotel by Id Success.",
"data": {
"id": 1,
"created_at": "2025-03-24T11:06:36.270Z",
"updated_at": "2024-08-24T11:06:36.270Z",
"name": "Genevieve Stroman",
"location": "aute eu sint minim",
"rating": 5,
"owner": {
"id": 1,
"created_at": "2025-03-24T14:38:44.531Z",
"updated_at": "2024-04-24T14:38:44.531Z",
"name": "Willie Jaskolski V",
"email": "Kale_Becker44@hotmail.com",
"phone_number": "087978362121"
}
}
}
Request
Path Params
hotel_id
string
required
Example:
1