Method | URI and Fields |
GET | /iap/floorplans |
Returns all floor plans that the current user is permitted to get. Returned floor plans can be reduced to only id's and coordinates. Parameters (optional)coordsOnly – true/false (false by default) if set to true, then returned FloorPlanDTO will contain only floor plan ID and it's coordinates scId - if specified accumulates all devices owned by segment controller with the specified id and returns floor plans found devices are belong to. If segment controller is assigned on any floor itself, it is also taken into account scName - if specified accumulates all devices owned by segment controller with the specified name and returns floor plans found devices are belong to. If segment controller is assigned on any floor itself, it is also taken into account pg – page number sz – page size
Success ResponseCollection of floor plans. Examplehttps://localhost/iap/floorplans Response[ { "id": 1382, "name": "First floor plan", "description": null, "geozoneId": 88, "latitude": 37.3847, "longitude": -121.98507 } ] |
|
/iap/floorplans/{id}/floors |
Returns all floors related to the specified floor plan that the current user has the permission to get. Parameters For optional parameters, see ... Success ResponseCollection of floors for a specified floor plan. Examplehttps://localhost/iap/floorplans/1382/floors Response[ { "id": 1383, "name": "First Floor", "description": null, "floorNumber": "1", "floorplanId": 1382, "image": "iVBORw0KGgoAAAANSUhEUgAABoUAAAMzCAIAAADvdozd...", "devicesCount": 0 } ] |
|
/iap/floorplans/count |
Returns the number of floor plans available for the current user to get. Success ResponseNumber of floor plans. Examplehttps://localhost/iap/floorplans/count Response{ "value": 5 } |
|
/iap/floorplans/listByIDs |
Returns collection with coordinates for specified ids. Parameters Request Payload[integer, integer, …] Success ResponseCollection of floor plans. Examplehttps://localhost/iap/floorplans/listByIDs Request Body[1382] Response[ { "id": 1382, "name": "First floor plan", "description": null, "geozoneId": 88, "latitude": 37.3847, "longitude": -121.98507 } ] |
|
PUT | /iap/floorplans/{id} |
Updates an already existing floor with the specified properties. Parameters Success ResponseReturns successfully updated floor. Examplehttps://localhost/iap/floorplans/1384
Request Body{ "geozoneId":88, "name":"Second floor plan UPDATED", "latitude":38.3847, "longitude":-120.98507 } Response{ "id": 1384, "name": "Second floor plan UPDATED", "description": null, "geozoneId": 88, "latitude": 38.3847, "longitude": -120.98507 } |
|
/iap/floorplans/floors/{id} |
Updates existing floor plan with specified properties. ParametersSuccess ResponseSuccessfully updated floor. Examplehttps://localhost/iap/floorplans/floors/1383 Request Payload{ "id":1383, "name":"First Floor UPDATED", "description":"Test floor", "floorNumber":"1", "floorplanId":1382, "devicesCount":0 } Response{ "id": 1383, "name": "First Floor UPDATED", "description": "Test floor", "floorNumber": "1", "floorplanId": 1382, "image": "iVBORw0KGgoAAAANSUhE...", "devicesCount": 0 } |
|
POST | /iap/floorplans |
Creates new floor plan from the specified properties. Success ResponseReturns successfully created floor plan. Examplehttps://localhost/iap/floorplans Request Body{ "geozoneId":88, "name":"Second floor plan", "latitude":38.3847, "longitude":-120.98507 } Response{ "id": 1384, "name": "Second floor plan", "description": null, "geozoneId": 88, "latitude": 38.3847, "longitude": -120.98507 } |
|
/iap/floorplans/{id}/floors |
Creates a floor on the specified floor plan with the uploaded image. ParametersSuccess ResponseProperties of successfully created floor. Examplehttps://localhost/iap/floorplans/1382/floors Request Payload------WebKitFormBoundarytoHjPCweBo7mR1ig Content-Disposition: form-data; name="data"; filename="blob" Content-Type: application/json {"name":"First Floor","floorNumber":"1"} ------WebKitFormBoundarytoHjPCweBo7mR1ig Content-Disposition: form-data; name="file"; filename="floor.png" Content-Type: image/png ------WebKitFormBoundarytoHjPCweBo7mR1ig-- Response{ description: null devicesCount: 0 floorNumber: "1" floorplanId: 1382 id: 1383 image: "iVBORw0KGgoAAAANSUhEUgAABoUAAAMzCAIAAADvdozdAAAAAX" name: "First Floor" } |
|
DELETE | /iap/floorplans/{id} |
Deletes specified floor plan from the CMS. ParametersSuccess ResponseState of performed operation. True in case of success and false otherwise. Examplehttps://localhost/iap/floorplans/1384 Response{ "value": true } |
|
/iap/floorplans/floors/{id} |
Deletes the specified floor from the CMS. ParametersSuccess ResponseState of operation. True in case of success and false otherwise. Examplehttps://localhost/iap/floorplans/floors/1383 Response{ "value": true } |
|