| GET | /api/v1/devices/{Guid} |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| BearerToken | query | string | Yes | |
| Guid | path | Guid | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Device | form | Device | No | |
| ResponseStatus | form | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Guid | form | Guid | No | |
| Number | form | string | No | |
| Label | form | string | No | |
| Description | form | string | No | |
| InstallationDate | form | DateTime | No | |
| DeinstallationDate | form | DateTime? | No | |
| CalibrationDate | form | DateTime? | No | |
| Unit | form | EinheitType | No | Allowable Values
|
| Note | form | string | No | |
| DeviceCatalog | form | DeviceCatalog | No | |
| DeviceConsumptions | form | List<DeviceConsumption> | No |
| L | |
| Kg | |
| CBM | |
| Stck | |
| KWH | |
| MWH | |
| GWH | |
| T | |
| RM | |
| Einheit | |
| Qm | |
| GJ | |
| MJ | |
| Null | |
| St | |
| Srm | |
| Wh |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Guid | form | string | No | |
| TypeShort | form | string | No | |
| TypeLong | form | string | No | |
| Readable | form | bool | No | |
| Class | form | string | No | |
| Subtraction | form | bool | No | |
| Hkvv | form | bool | No | |
| Radio | form | bool | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Guid | form | Guid | No | |
| DeviceReading | form | double? | No | |
| DeviceReadingDate | form | DateTime? | No | |
| DeviceReadingKind | form | DeviceReadingKind | No | Allowable Values
|
| ChangeDate | form | DateTime? | No | |
| Note | form | string | No | |
| AmpouleColour | form | string | No | |
| DeviceGuid | form | string | No |
| ZA | |
| HA | |
| MO | |
| EB | |
| AB |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /api/v1/devices/{Guid} HTTP/1.1
Host: inea-servdesk.eras-online.de
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
device:
{
guid: 00000000000000000000000000000000,
number: String,
label: String,
description: String,
installationDate: 0001-01-01T00:00:00Z,
deinstallationDate: 0001-01-01T00:00:00Z,
calibrationDate: 0001-01-01T00:00:00Z,
unit: L,
note: String,
deviceCatalog:
{
Guid: String,
TypKurz: String,
TypLang: String,
Ablesbar: False,
Klasse: String,
Abzug: False,
Hkvv: False,
Funk: False
},
deviceConsumptions:
[
{
guid: 00000000000000000000000000000000,
deviceReading: 0,
deviceReadingDate: 0001-01-01T00:00:00Z,
deviceReadingKind: ZA,
changeDate: 0001-01-01T00:00:00Z,
note: String,
ampouleColour: String,
deviceGuid: String
}
]
},
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}