Get Room by Id
GET
/api/v1/rooms/{room_id}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/v1/rooms/1'
Response Response Example
{
"status_code": 200,
"message": "Get Room by Id Success.",
"data": {
"id": 1,
"created_at": "2025-03-25T03:43:55.070Z",
"updated_at": "2025-03-28T03:43:55.070Z",
"name": "Teresa Fisher",
"price_per_night": 355.45,
"max_guests": 2,
"available_rooms_per_day": 10,
"hotel": {
"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
}
}
}
Request
Path Params
room_id
string
required
Example:
1