GET api/Group
Returns all groups
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of GroupName | Description | Type | Additional information |
---|---|---|---|
ID |
ID of the Group |
string |
None. |
assets |
Array of assets within the Group |
Collection of Asset |
None. |
name |
Name of the Group |
string |
None. |
type |
Type of the Group |
string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "ID": "sample string 1", "assets": [ { "id": "sample string 1", "name": "sample string 2", "type": "sample string 3", "routeID": "sample string 4", "group": "sample string 5", "zones": [ "sample string 1", "sample string 2" ], "location": { "currentLat": 1.1, "currentLon": 1.1, "lastLat": 1.1, "lastLon": 1.1, "finalLat": 1.1, "finalLon": 1.1, "time": "2025-01-18T05:06:47.2925915+00:00", "altitude": 1.1 }, "alert": true }, { "id": "sample string 1", "name": "sample string 2", "type": "sample string 3", "routeID": "sample string 4", "group": "sample string 5", "zones": [ "sample string 1", "sample string 2" ], "location": { "currentLat": 1.1, "currentLon": 1.1, "lastLat": 1.1, "lastLon": 1.1, "finalLat": 1.1, "finalLon": 1.1, "time": "2025-01-18T05:06:47.2925915+00:00", "altitude": 1.1 }, "alert": true } ], "name": "sample string 2", "type": "sample string 3" }, { "ID": "sample string 1", "assets": [ { "id": "sample string 1", "name": "sample string 2", "type": "sample string 3", "routeID": "sample string 4", "group": "sample string 5", "zones": [ "sample string 1", "sample string 2" ], "location": { "currentLat": 1.1, "currentLon": 1.1, "lastLat": 1.1, "lastLon": 1.1, "finalLat": 1.1, "finalLon": 1.1, "time": "2025-01-18T05:06:47.2925915+00:00", "altitude": 1.1 }, "alert": true }, { "id": "sample string 1", "name": "sample string 2", "type": "sample string 3", "routeID": "sample string 4", "group": "sample string 5", "zones": [ "sample string 1", "sample string 2" ], "location": { "currentLat": 1.1, "currentLon": 1.1, "lastLat": 1.1, "lastLon": 1.1, "finalLat": 1.1, "finalLon": 1.1, "time": "2025-01-18T05:06:47.2925915+00:00", "altitude": 1.1 }, "alert": true } ], "name": "sample string 2", "type": "sample string 3" } ]
application/xml, text/xml
Sample:
<ArrayOfGroup xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AAVRADServer.Models"> <Group> <ID>sample string 1</ID> <assets> <Asset> <ID>sample string 1</ID> <alert>true</alert> <group>sample string 5</group> <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:06:47.2925915+00:00</time> </location> <name>sample string 2</name> <routeID>sample string 4</routeID> <type>sample string 3</type> <zones xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:string>sample string 1</d5p1:string> <d5p1:string>sample string 2</d5p1:string> </zones> </Asset> <Asset> <ID>sample string 1</ID> <alert>true</alert> <group>sample string 5</group> <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:06:47.2925915+00:00</time> </location> <name>sample string 2</name> <routeID>sample string 4</routeID> <type>sample string 3</type> <zones xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:string>sample string 1</d5p1:string> <d5p1:string>sample string 2</d5p1:string> </zones> </Asset> </assets> <name>sample string 2</name> <type>sample string 3</type> </Group> <Group> <ID>sample string 1</ID> <assets> <Asset> <ID>sample string 1</ID> <alert>true</alert> <group>sample string 5</group> <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:06:47.2925915+00:00</time> </location> <name>sample string 2</name> <routeID>sample string 4</routeID> <type>sample string 3</type> <zones xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:string>sample string 1</d5p1:string> <d5p1:string>sample string 2</d5p1:string> </zones> </Asset> <Asset> <ID>sample string 1</ID> <alert>true</alert> <group>sample string 5</group> <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:06:47.2925915+00:00</time> </location> <name>sample string 2</name> <routeID>sample string 4</routeID> <type>sample string 3</type> <zones xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:string>sample string 1</d5p1:string> <d5p1:string>sample string 2</d5p1:string> </zones> </Asset> </assets> <name>sample string 2</name> <type>sample string 3</type> </Group> </ArrayOfGroup>