| POST | /api/v1/external/kromer |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Pagination | body | Pagination | Yes | |
| Data | body | List<LobaroData> | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Limit | form | int | No | |
| Total | form | int | No | |
| Offset | form | int | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | int | No | |
| DeviceId | form | int | No | |
| CreatedAt | form | DateTime | No | |
| UpdatedAt | form | DateTime | No | |
| Data | form | DeviceData | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Mbus | form | DeviceMbusData | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| IdString | form | int | No | |
| DeviceString | form | string | No | |
| Body | form | MbusBody | No | |
| Header | form | Header | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| DataRecords | form | List<MbusBodyDataRecords> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| VifUnit | form | string | No | |
| VifQuantity | form | string | No | |
| ValueScaled | form | double | No | |
| VifExponent | form | string | No | |
| ValueString | form | string | No | |
| Value | form | string | No | |
| DifFunctionString | form | string | No | |
| StorageNo | form | string | No | |
| CompactProfile | form | CompactProfile | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| History | form | List<History> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Time | form | string | No | |
| Value | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| IdString | form | int | No | |
| DeviceString | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No |
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.
POST /api/v1/external/kromer HTTP/1.1
Host: marneth-messdienst-servdesk.eras-online.de
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
pagination:
{
limit: 0,
total: 0,
offset: 0
},
data:
[
{
id: 0,
deviceId: 0,
createdAt: 0001-01-01T00:00:00Z,
updatedAt: 0001-01-01T00:00:00Z,
data:
{
mbus:
{
idString: 0,
deviceString: String,
body:
{
dataRecords:
[
{
vifUnit: String,
vifQuantity: String,
valueScaled: 0,
vifExponent: String,
valueString: String,
value: String,
difFunctionString: String,
storageNo: String,
compactProfile:
{
history:
[
{
time: String,
value: String
}
]
}
}
]
},
header:
{
idString: 0,
deviceString: String
}
}
}
}
]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}