Server

<back to all web services

GetBrennstoffMedien

Brennstoffmedien
Requires Authentication
The following routes are available for this service:
GET/api/v1/brennstoffmedien
import Foundation
import ServiceStack

public class GetBrennstoffMedien : IHasBearerToken, Codable
{
    // @ApiMember(IsRequired=true, ParameterType="query")
    public var bearerToken:String

    required public init(){}
}

public class GetBrennstoffMedienResponse : Codable
{
    public var brennstoffMedien:[BrennstoffMedium] = []
    public var responseStatus:ResponseStatus

    required public init(){}
}

// @DataContract
public class BrennstoffMedium : Codable
{
    // @DataMember(Name="Guid")
    public var Guid:String

    // @DataMember(Name="Bezeichnung")
    public var Bezeichnung:String

    // @DataMember(Name="Lagernd")
    public var Lagernd:Bool

    // @DataMember(Name="EinheitTyp")
    public var EinheitTyp:String

    // @DataMember(Name="Heizwert")
    public var Heizwert:Double?

    required public init(){}
}


Swift GetBrennstoffMedien DTOs

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

HTTP + 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"}}}