Server

<back to all web services

GetLobaroFairthermDeviceParsedData

External
Requires Authentication
The following routes are available for this service:
POST/api/v1/external/fairtherm
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Eras2Web.Service.Desktop.Server.ServiceModel.Eras2WebExt.Lobaro
Imports Eras2Web.Service.Desktop.Server.ServiceModel.Eras2WebExt.Lobaro.LobaroModels

Namespace Global

    Namespace Eras2Web.Service.Desktop.Server.ServiceModel.Eras2WebExt.Lobaro

        Public Partial Class GetLobaroFairthermDeviceParsedData
            Public Sub New()
                Data = New List(Of LobaroData)
            End Sub

            <ApiMember(IsRequired:=true, ParameterType:="body")>
            Public Overridable Property Pagination As Pagination

            <ApiMember(IsRequired:=true, ParameterType:="body")>
            Public Overridable Property Data As List(Of LobaroData)
        End Class

        Public Partial Class GetLobaroFairthermDeviceParsedDataResponse
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class
    End Namespace

    Namespace Eras2Web.Service.Desktop.Server.ServiceModel.Eras2WebExt.Lobaro.LobaroModels

        Public Partial Class CompactProfile
            Public Sub New()
                History = New List(Of History)
            End Sub

            Public Overridable Property History As List(Of History)
        End Class

        Public Partial Class DeviceData
            Public Overridable Property Mbus As DeviceMbusData
        End Class

        Public Partial Class DeviceMbusData
            Public Overridable Property IdString As Integer
            Public Overridable Property DeviceString As String
            Public Overridable Property Body As MbusBody
            Public Overridable Property Header As Header
        End Class

        Public Partial Class Header
            Public Overridable Property IdString As Integer
            Public Overridable Property DeviceString As String
        End Class

        Public Partial Class History
            Public Overridable Property Time As String
            Public Overridable Property Value As String
        End Class

        Public Partial Class LobaroData
            Public Overridable Property Id As Integer
            Public Overridable Property DeviceId As Integer
            Public Overridable Property CreatedAt As Date
            Public Overridable Property UpdatedAt As Date
            Public Overridable Property Data As DeviceData
        End Class

        Public Partial Class MbusBody
            Public Sub New()
                DataRecords = New List(Of MbusBodyDataRecords)
            End Sub

            Public Overridable Property DataRecords As List(Of MbusBodyDataRecords)
        End Class

        Public Partial Class MbusBodyDataRecords
            Public Overridable Property VifUnit As String
            Public Overridable Property VifQuantity As String
            Public Overridable Property ValueScaled As Double
            Public Overridable Property VifExponent As String
            Public Overridable Property ValueString As String
            Public Overridable Property Value As String
            Public Overridable Property DifFunctionString As String
            Public Overridable Property StorageNo As String
            Public Overridable Property CompactProfile As CompactProfile
        End Class

        Public Partial Class Pagination
            Public Overridable Property Limit As Integer
            Public Overridable Property Total As Integer
            Public Overridable Property Offset As Integer
        End Class
    End Namespace
End Namespace

VB.NET GetLobaroFairthermDeviceParsedData DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/v1/external/fairtherm HTTP/1.1 
Host: calotec-portal-servdesk.eras-online.de 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"pagination":{"limit":0,"total":0,"offset":0},"data":[{"id":0,"deviceId":0,"createdAt":"0001-01-01T00:00:00.0000000Z","updatedAt":"0001-01-01T00:00:00.0000000Z","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/jsonl
Content-Length: length

{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}