Server

<back to all web services

GetEras2FileListDownload

Eras2FilesDownload
Requires Authentication
The following routes are available for this service:
GET/api/v1/eras2filesdownload
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class GetEras2FileListDownloadResponse implements IConvertible
{
    Map<String,String?>? options;
    ResponseStatus? responseStatus;

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

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

    Map<String, dynamic> toJson() => {
        'options': JsonConverters.toJson(options,'Map<String,String?>',context!),
        'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!)
    };

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

class GetEras2FileListDownload implements IHasBearerToken, IConvertible
{
    // @ApiMember(IsRequired=true, ParameterType="query")
    String? bearerToken;

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

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

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

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

TypeContext _ctx = TypeContext(library: 'korrekt_gera_servdesk.eras_online.de', types: <String, TypeInfo> {
    'GetEras2FileListDownloadResponse': TypeInfo(TypeOf.Class, create:() => GetEras2FileListDownloadResponse()),
    'Map<String,String?>': TypeInfo(TypeOf.Class, create:() => Map<String,String?>()),
    'GetEras2FileListDownload': TypeInfo(TypeOf.Class, create:() => GetEras2FileListDownload()),
});

Dart GetEras2FileListDownload 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/eras2filesdownload HTTP/1.1 
Host: korrekt-gera-servdesk.eras-online.de 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{Unable to show example output for type 'GetEras2FileListDownloadResponse' using the custom 'csv' filter}Cannot dynamically create an instance of type 'Eras2Web.Service.Desktop.Server.ServiceModel.Eras2WebExt.Get.GetEras2FileListDownloadResponse'. Reason: No parameterless constructor defined.