Telemetry - Get Location List
Getting the list of all the registered locations
Gethttps://api.iotstadium.com/ext/locations?page=1&limit=10&search=fixing
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{token}}"
}
Parameter
Field | Type | Description |
---|---|---|
page | String |
Number of page |
limit | String |
Limit of search result in one page |
search | Text |
Searched keyword |
{
"message": "success",
"code": 200,
"data": {
"locations": [
{
"id": 8,
"location_name": "Loc1",
"description": null,
"address": null,
"coord_lat": "",
"coord_long": "",
"created_by": {
"first_name": "Test",
"last_name": "QA",
"id": 78,
"email": "owner@gmail.com"
},
"custom_field": [
{
"id": 29,
"key": "Floor",
"parent_id": null,
"child": []
},
{
"id": 32,
"key": "Room",
"parent_id": null,
"child": []
},
{
"id": 36,
"key": "Place",
"parent_id": null,
"child": []
},
{
"id": 37,
"key": "Door",
"parent_id": null,
"child": []
},
{
"id": 35,
"key": "Block",
"parent_id": null,
"child": []
}
]
},
{
"id": 6,
"location_name": "Loc2",
"description": null,
"address": null,
"coord_lat": "",
"coord_long": "",
"created_by": {
"first_name": "Test",
"last_name": "QA",
"id": 78,
"email": "test.admin@iotstadium.com"
},
"custom_field": []
},
{
"id": 5,
"location_name": "Loc3",
"description": null,
"address": null,
"coord_lat": "",
"coord_long": "",
"created_by": {
"first_name": "Test",
"last_name": "QA",
"id": 78,
"email": "test.admin@iotstadium.com"
},
"custom_field": []
},
{
"id": 4,
"location_name": "Loc4",
"description": null,
"address": null,
"coord_lat": "",
"coord_long": "",
"created_by": {
"first_name": "Test",
"last_name": "QA",
"id": 78,
"email": "test.admin@iotstadium.com"
},
"custom_field": []
},
{
"id": 2,
"location_name": "Loc5",
"description": "Loc Desc",
"address": "Loc Address",
"coord_lat": "",
"coord_long": "",
"created_by": {
"first_name": "Test",
"last_name": "QA",
"id": 78,
"email": "test.admin@iotstadium.com"
},
"custom_field": []
}
]
}
}
{
"message": "success",
"code": 200,
"data": {
"locations": [
{
"id": 170,
"location_name": "fixing annotation",
"description": "",
"address": "testing",
"coord_lat": "-7.33268344239",
"coord_long": "112.63445867893",
"created_by": {
"first_name": "Test",
"last_name": "QA",
"id": 78,
"email": "owner@gmail.com"
},
"custom_field": [
{
"id": 269,
"key": "home",
"parent_id": null,
"child": [
{
"id": 270,
"key": "rumah",
"parent_id": 269,
"child": [
{
"id": 271,
"key": "new",
"parent_id": 270,
"child": []
}
]
}
]
}
]
}
],
"total": 1,
"page": 1,
"total_page": 1
}
}