Last Updated on : 2023-06-01 06:20:15download
Query the list of rooms under a specified home.
GET: /v1.0/homes/{home_id}/rooms
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
home_id | Long | uri | true | The ID of a home. |
Parameter name | Type | Description |
---|---|---|
result | HomeAndRoomsRes | The list of rooms. |
Description of result
Parameter name | Type | Description |
---|---|---|
home_id | Long | The ID of a home. |
name | String | The name of a home. |
lon | Double | The longitude of a home. |
lat | Double | The latitude of a home. |
geo_name | String | The detailed address. |
rooms | List |
The list of rooms. |
Description of rooms
Parameter name | Type | Description |
---|---|---|
room_id | Long | The ID of a room. |
name | String | The name of a room. |
GET: GET /v1.0/homes/337403/rooms
{ "result": { "geo_name": "Hangzhou Grand Center", "home_id": 337403, "lat": 30.302553689454005, "lon": 120.0640923396687, "name": "Test Home" "rooms": [ { "name":"Living Room", "room_id": 587609 }, { "name":"Master Bedroom", "room_id": 587610 }, { "name": "Second Bedroom", "room_id": 587611 } ] }, "success": true, "t": 1611394597651 }
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback