Server

<back to all web services

GetBrennstoffMedien

Brennstoffmedien
Requires Authentication
The following routes are available for this service:
GET/api/v1/brennstoffmedien
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Eras2Web.Service.Desktop.Server.ServiceModel.Eras2WebExt.Get;
using Eras2Web.Service.Desktop.Server.ServiceModel.Stammdaten;

namespace Eras2Web.Service.Desktop.Server.ServiceModel.Eras2WebExt.Get
{
    public partial class GetBrennstoffMedien
        : IHasBearerToken
    {
        [ApiMember(IsRequired=true, ParameterType="query")]
        public virtual string BearerToken { get; set; }
    }

    public partial class GetBrennstoffMedienResponse
    {
        public virtual IEnumerable<BrennstoffMedium> BrennstoffMedien { get; set; }
        public virtual ResponseStatus ResponseStatus { get; set; }
    }

}

namespace Eras2Web.Service.Desktop.Server.ServiceModel.Stammdaten
{
    [DataContract]
    public partial class BrennstoffMedium
    {
        [DataMember(Name="Guid")]
        public virtual string Guid { get; set; }

        [DataMember(Name="Bezeichnung")]
        public virtual string Label { get; set; }

        [DataMember(Name="Lagernd")]
        public virtual bool Storable { get; set; }

        [DataMember(Name="EinheitTyp")]
        public virtual string EinheitType { get; set; }

        [DataMember(Name="Heizwert")]
        public virtual decimal? Heizwert { get; set; }
    }

}

C# GetBrennstoffMedien 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.

GET /api/v1/brennstoffmedien HTTP/1.1 
Host: brendle-schneider-servdesk.eras-online.de 
Accept: text/jsonl
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"}}}