Server

<back to all web services

GetOrderDescriptors

Requires Authentication
The following routes are available for this service:
GET/App/{UserId}/GetOrderDescriptors
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Eras2Amw.Service.Server.ServiceModel.Eras2App.Get;
using Eras2Amw.Service.Server.ServiceModel.Eras2App;

namespace Eras2Amw.Service.Server.ServiceModel.Eras2App
{
    [DataContract]
    public partial class Eras2AppServiceModelBase
    {
        [DataMember(Name="UserId")]
        public virtual Guid UserId { get; set; }
    }

}

namespace Eras2Amw.Service.Server.ServiceModel.Eras2App.Get
{
    [DataContract]
    public partial class GetOrderDescriptors
        : Eras2AppServiceModelBase
    {
    }

    public partial class GetOrderDescriptorsResponse
    {
        [DataMember(Name="OrderDescriptors")]
        public virtual IList<OrderDescriptor> OrderDescriptors { get; set; }

        public virtual ResponseStatus ResponseStatus { get; set; }
    }

    [DataContract]
    public partial class OrderDescriptor
    {
        [DataMember(Name="AuftragGuid")]
        public virtual Guid OrderGuid { get; set; }

        [DataMember(Name="AbrechnungseinheitGuid")]
        public virtual Guid AbrechnungseinheitGuid { get; set; }

        [DataMember(Name="NutzeinheitGuids")]
        public virtual IList<Guid> NutzeinheitGuids { get; set; }
    }

}

C# GetOrderDescriptors 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 /App/{UserId}/GetOrderDescriptors HTTP/1.1 
Host: marneth-messdienst-servamw.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"}}}