GET api/Zone
Returns all Zones
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of ZoneName | Description | Type | Additional information |
---|---|---|---|
corners |
Corners of the Zone |
Collection of Location |
None. |
id |
Id of the Zone |
string |
None. |
name |
Name of the Zone |
string |
None. |
type |
Type of the Zone |
string |
None. |
displayType |
Display Type of the Zone |
string |
None. |
openOrClosed |
Whether the Zone is Open or Close |
boolean |
None. |
assetsAndGroup |
Assets and Group associated with the Zone |
Collection of Collection of integer |
None. |
Response Formats
application/json, text/json
Sample:
[ { "corners": [ { "currentLat": 1.1, "currentLon": 1.1, "lastLat": 1.1, "lastLon": 1.1, "finalLat": 1.1, "finalLon": 1.1, "time": "2025-01-18T05:02:01.6868325+00:00", "altitude": 1.1 }, { "currentLat": 1.1, "currentLon": 1.1, "lastLat": 1.1, "lastLon": 1.1, "finalLat": 1.1, "finalLon": 1.1, "time": "2025-01-18T05:02:01.6868325+00:00", "altitude": 1.1 } ], "id": "sample string 1", "name": "sample string 2", "type": "sample string 3", "displayType": "sample string 4", "openOrClosed": true, "assetsAndGroup": [ [ 1, 2 ], [ 1, 2 ] ] }, { "corners": [ { "currentLat": 1.1, "currentLon": 1.1, "lastLat": 1.1, "lastLon": 1.1, "finalLat": 1.1, "finalLon": 1.1, "time": "2025-01-18T05:02:01.6868325+00:00", "altitude": 1.1 }, { "currentLat": 1.1, "currentLon": 1.1, "lastLat": 1.1, "lastLon": 1.1, "finalLat": 1.1, "finalLon": 1.1, "time": "2025-01-18T05:02:01.6868325+00:00", "altitude": 1.1 } ], "id": "sample string 1", "name": "sample string 2", "type": "sample string 3", "displayType": "sample string 4", "openOrClosed": true, "assetsAndGroup": [ [ 1, 2 ], [ 1, 2 ] ] } ]
application/xml, text/xml
Sample:
<ArrayOfZone xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AAVRADServer.Models"> <Zone> <ID>sample string 1</ID> <assetsAndGroup xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:ArrayOfint> <d3p1:int>1</d3p1:int> <d3p1:int>2</d3p1:int> </d3p1:ArrayOfint> <d3p1:ArrayOfint> <d3p1:int>1</d3p1:int> <d3p1:int>2</d3p1:int> </d3p1:ArrayOfint> </assetsAndGroup> <corners> <Location> <altitude>1.1</altitude> <currentLat>1.1</currentLat> <currentLon>1.1</currentLon> <finalLat>1.1</finalLat> <finalLon>1.1</finalLon> <lastLat>1.1</lastLat> <lastLon>1.1</lastLon> <time>2025-01-18T05:02:01.6868325+00:00</time> </Location> <Location> <altitude>1.1</altitude> <currentLat>1.1</currentLat> <currentLon>1.1</currentLon> <finalLat>1.1</finalLat> <finalLon>1.1</finalLon> <lastLat>1.1</lastLat> <lastLon>1.1</lastLon> <time>2025-01-18T05:02:01.6868325+00:00</time> </Location> </corners> <displayType>sample string 4</displayType> <name>sample string 2</name> <openOrClosed>true</openOrClosed> <type>sample string 3</type> </Zone> <Zone> <ID>sample string 1</ID> <assetsAndGroup xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:ArrayOfint> <d3p1:int>1</d3p1:int> <d3p1:int>2</d3p1:int> </d3p1:ArrayOfint> <d3p1:ArrayOfint> <d3p1:int>1</d3p1:int> <d3p1:int>2</d3p1:int> </d3p1:ArrayOfint> </assetsAndGroup> <corners> <Location> <altitude>1.1</altitude> <currentLat>1.1</currentLat> <currentLon>1.1</currentLon> <finalLat>1.1</finalLat> <finalLon>1.1</finalLon> <lastLat>1.1</lastLat> <lastLon>1.1</lastLon> <time>2025-01-18T05:02:01.6868325+00:00</time> </Location> <Location> <altitude>1.1</altitude> <currentLat>1.1</currentLat> <currentLon>1.1</currentLon> <finalLat>1.1</finalLat> <finalLon>1.1</finalLon> <lastLat>1.1</lastLat> <lastLon>1.1</lastLon> <time>2025-01-18T05:02:01.6868325+00:00</time> </Location> </corners> <displayType>sample string 4</displayType> <name>sample string 2</name> <openOrClosed>true</openOrClosed> <type>sample string 3</type> </Zone> </ArrayOfZone>