Server

<back to all web services

GetOrderDescriptors

Requires Authentication
The following routes are available for this service:
GET/App/{UserId}/GetOrderDescriptors
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

// @DataContract
abstract class Eras2AppServiceModelBase
{
    // @DataMember(Name="UserId")
    String? UserId;

    Eras2AppServiceModelBase({this.UserId});
    Eras2AppServiceModelBase.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        UserId = json['userId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'userId': UserId
    };

    getTypeName() => "Eras2AppServiceModelBase";
    TypeContext? context = _ctx;
}

// @DataContract
class OrderDescriptor implements IConvertible
{
    // @DataMember(Name="AuftragGuid")
    String? AuftragGuid;

    // @DataMember(Name="AbrechnungseinheitGuid")
    String? AbrechnungseinheitGuid;

    // @DataMember(Name="NutzeinheitGuids")
    List<String>? NutzeinheitGuids;

    OrderDescriptor({this.AuftragGuid,this.AbrechnungseinheitGuid,this.NutzeinheitGuids});
    OrderDescriptor.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        AuftragGuid = json['orderGuid'];
        AbrechnungseinheitGuid = json['abrechnungseinheitGuid'];
        NutzeinheitGuids = JsonConverters.fromJson(json['nutzeinheitGuids'],'List<String>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'auftragGuid': AuftragGuid,
        'abrechnungseinheitGuid': AbrechnungseinheitGuid,
        'nutzeinheitGuids': JsonConverters.toJson(NutzeinheitGuids,'List<String>',context!)
    };

    getTypeName() => "OrderDescriptor";
    TypeContext? context = _ctx;
}

class GetOrderDescriptorsResponse implements IConvertible
{
    // @DataMember(Name="OrderDescriptors")
    List<OrderDescriptor>? OrderDescriptors;

    ResponseStatus? responseStatus;

    GetOrderDescriptorsResponse({this.OrderDescriptors,this.responseStatus});
    GetOrderDescriptorsResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        OrderDescriptors = JsonConverters.fromJson(json['orderDescriptors'],'List<OrderDescriptor>',context!);
        responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'orderDescriptors': JsonConverters.toJson(OrderDescriptors,'List<OrderDescriptor>',context!),
        'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!)
    };

    getTypeName() => "GetOrderDescriptorsResponse";
    TypeContext? context = _ctx;
}

// @DataContract
class GetOrderDescriptors extends Eras2AppServiceModelBase implements IConvertible
{
    GetOrderDescriptors();
    GetOrderDescriptors.fromJson(Map<String, dynamic> json) : super.fromJson(json);
    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson();
    getTypeName() => "GetOrderDescriptors";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'concept2021_servamw.eras_online.de', types: <String, TypeInfo> {
    'Eras2AppServiceModelBase': TypeInfo(TypeOf.AbstractClass),
    'OrderDescriptor': TypeInfo(TypeOf.Class, create:() => OrderDescriptor()),
    'GetOrderDescriptorsResponse': TypeInfo(TypeOf.Class, create:() => GetOrderDescriptorsResponse()),
    'List<OrderDescriptor>': TypeInfo(TypeOf.Class, create:() => <OrderDescriptor>[]),
    'GetOrderDescriptors': TypeInfo(TypeOf.Class, create:() => GetOrderDescriptors()),
});

Dart GetOrderDescriptors 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 /App/{UserId}/GetOrderDescriptors HTTP/1.1 
Host: concept2021-servamw.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"}}}