| POST | /api/v1/external/nlfacility |
|---|
import java.math.*
import java.util.*
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*
open class GetLobaroNlFacilityDeviceParsedData
{
@ApiMember(IsRequired=true, ParameterType="body")
var pagination:Pagination? = null
@ApiMember(IsRequired=true, ParameterType="body")
@SerializedName("data") var Data:ArrayList<LobaroData> = ArrayList<LobaroData>()
}
open class Pagination
{
var limit:Int? = null
var total:Int? = null
var offset:Int? = null
}
open class LobaroData
{
var id:Int? = null
var deviceId:Int? = null
var createdAt:Date? = null
var updatedAt:Date? = null
@SerializedName("data") var Data:DeviceData? = null
}
open class DeviceData
{
var mbus:DeviceMbusData? = null
}
open class DeviceMbusData
{
var idString:Int? = null
var deviceString:String? = null
var body:MbusBody? = null
var header:Header? = null
}
open class MbusBody
{
var dataRecords:ArrayList<MbusBodyDataRecords> = ArrayList<MbusBodyDataRecords>()
}
open class MbusBodyDataRecords
{
var vifUnit:String? = null
var vifQuantity:String? = null
var valueScaled:Double? = null
var vifExponent:String? = null
var valueString:String? = null
var value:String? = null
var difFunctionString:String? = null
var storageNo:String? = null
var compactProfile:CompactProfile? = null
}
open class CompactProfile
{
var history:ArrayList<History> = ArrayList<History>()
}
open class History
{
var time:String? = null
var value:String? = null
}
open class Header
{
var idString:Int? = null
var deviceString:String? = null
}
open class GetLobaroNlFacilityDeviceParsedDataResponse
{
var responseStatus:ResponseStatus? = null
}
Kotlin GetLobaroNlFacilityDeviceParsedData DTOs
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/nlfacility HTTP/1.1
Host: fairtherm-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
}
}
}