| GET | /api/v1/brennstoffmedien |
|---|
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.Get
Imports Eras2Web.Service.Desktop.Server.ServiceModel.Stammdaten
Namespace Global
Namespace Eras2Web.Service.Desktop.Server.ServiceModel.Eras2WebExt.Get
Public Partial Class GetBrennstoffMedien
Implements IHasBearerToken
<ApiMember(IsRequired:=true, ParameterType:="query")>
Public Overridable Property BearerToken As String
End Class
Public Partial Class GetBrennstoffMedienResponse
Public Overridable Property BrennstoffMedien As IEnumerable(Of BrennstoffMedium)
Public Overridable Property ResponseStatus As ResponseStatus
End Class
End Namespace
Namespace Eras2Web.Service.Desktop.Server.ServiceModel.Stammdaten
<DataContract>
Public Partial Class BrennstoffMedium
<DataMember(Name:="Guid")>
Public Overridable Property Guid As String
<DataMember(Name:="Bezeichnung")>
Public Overridable Property Label As String
<DataMember(Name:="Lagernd")>
Public Overridable Property Storable As Boolean
<DataMember(Name:="EinheitTyp")>
Public Overridable Property EinheitType As String
<DataMember(Name:="Heizwert")>
Public Overridable Property Heizwert As Nullable(Of Decimal)
End Class
End Namespace
End Namespace
VB.NET GetBrennstoffMedien DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /api/v1/brennstoffmedien HTTP/1.1 Host: hbr-regional-servdesk.eras-online.de Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}