GET api/Asset

Returns all assets saved to the Database

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

All assets

Collection of Asset
NameDescriptionTypeAdditional information
id

Index of the asset.

string

None.

name

Name of the asset.

string

None.

type

Type of asset.

string

None.

routeID

ID of the route that the asset is assigned.

string

None.

group

Group that the asset belongs to.

string

None.

zones

Zone that the asset is within.

Collection of string

None.

location

Location of the asset.

Location

None.

alert

Whether the asset threw an alert or not.

boolean

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "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": "2024-05-19T01:06:35.8119434+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": "2024-05-19T01:06:35.8119434+00:00",
      "altitude": 1.1
    },
    "alert": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfAsset xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AAVRADServer.Models">
  <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>2024-05-19T01:06:35.8119434+00:00</time>
    </location>
    <name>sample string 2</name>
    <routeID>sample string 4</routeID>
    <type>sample string 3</type>
    <zones xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1: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>2024-05-19T01:06:35.8119434+00:00</time>
    </location>
    <name>sample string 2</name>
    <routeID>sample string 4</routeID>
    <type>sample string 3</type>
    <zones xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </zones>
  </Asset>
</ArrayOfAsset>