FIBUdataServiceStack

<back to all web services

BeraterDokumentDownloadRequest

The following routes are available for this service:
GET, POST/fibuscan/BeraterDokumentDownload
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class dokumente implements IPrimaryKey, IMandnr, IDel, ITableBaseErstelltAenderung, IConvertible
{
    int? ID;
    DateTime? _erstellt;
    DateTime? _aenderung;
    int? mandant;
    int? Datenindex;
    String? Dateiname;
    String? zip_dateiname;
    String? SubPfad;
    int? Upload;
    int? DownloadExt;
    DateTime? Datum;
    String? Link;
    String? anlagen;
    String? metadaten;
    int? dateityp;
    int? del;
    String? hash;
    String? guid;
    // @Ignore()
    String? server_hash;

    // @Ignore()
    int? PrimaryKey;

    dokumente({this.ID,this._erstellt,this._aenderung,this.mandant,this.Datenindex,this.Dateiname,this.zip_dateiname,this.SubPfad,this.Upload,this.DownloadExt,this.Datum,this.Link,this.anlagen,this.metadaten,this.dateityp,this.del,this.hash,this.guid,this.server_hash,this.PrimaryKey});
    dokumente.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ID = json['ID'];
        _erstellt = JsonConverters.fromJson(json['_erstellt'],'DateTime',context!);
        _aenderung = JsonConverters.fromJson(json['_aenderung'],'DateTime',context!);
        mandant = json['mandant'];
        Datenindex = json['Datenindex'];
        Dateiname = json['Dateiname'];
        zip_dateiname = json['zip_dateiname'];
        SubPfad = json['SubPfad'];
        Upload = json['Upload'];
        DownloadExt = json['DownloadExt'];
        Datum = JsonConverters.fromJson(json['Datum'],'DateTime',context!);
        Link = json['Link'];
        anlagen = json['anlagen'];
        metadaten = json['metadaten'];
        dateityp = json['dateityp'];
        del = json['del'];
        hash = json['hash'];
        guid = json['guid'];
        server_hash = json['server_hash'];
        PrimaryKey = json['PrimaryKey'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ID': ID,
        '_erstellt': JsonConverters.toJson(_erstellt,'DateTime',context!),
        '_aenderung': JsonConverters.toJson(_aenderung,'DateTime',context!),
        'mandant': mandant,
        'Datenindex': Datenindex,
        'Dateiname': Dateiname,
        'zip_dateiname': zip_dateiname,
        'SubPfad': SubPfad,
        'Upload': Upload,
        'DownloadExt': DownloadExt,
        'Datum': JsonConverters.toJson(Datum,'DateTime',context!),
        'Link': Link,
        'anlagen': anlagen,
        'metadaten': metadaten,
        'dateityp': dateityp,
        'del': del,
        'hash': hash,
        'guid': guid,
        'server_hash': server_hash,
        'PrimaryKey': PrimaryKey
    };

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

class DokumentDownloadResponse implements IConvertible
{
    Uint8List? dokument_bin;
    dokumente? dokument;

    DokumentDownloadResponse({this.dokument_bin,this.dokument});
    DokumentDownloadResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        dokument_bin = JsonConverters.fromJson(json['dokument_bin'],'Uint8List',context!);
        dokument = JsonConverters.fromJson(json['dokument'],'dokumente',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'dokument_bin': JsonConverters.toJson(dokument_bin,'Uint8List',context!),
        'dokument': JsonConverters.toJson(dokument,'dokumente',context!)
    };

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

class BeraterDokumentDownloadRequest implements IConvertible
{
    int? Mandnr;
    int? Dok_id;

    BeraterDokumentDownloadRequest({this.Mandnr,this.Dok_id});
    BeraterDokumentDownloadRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

TypeContext _ctx = TypeContext(library: 'ws4.fibudata.net', types: <String, TypeInfo> {
    'dokumente': TypeInfo(TypeOf.Class, create:() => dokumente()),
    'DokumentDownloadResponse': TypeInfo(TypeOf.Class, create:() => DokumentDownloadResponse()),
    'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)),
    'BeraterDokumentDownloadRequest': TypeInfo(TypeOf.Class, create:() => BeraterDokumentDownloadRequest()),
});

Dart BeraterDokumentDownloadRequest 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.

POST /fibuscan/BeraterDokumentDownload HTTP/1.1 
Host: ws4.fibudata.net 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"Mandnr":0,"Dok_id":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"dokument_bin":"AA==","dokument":{"ID":0,"_erstellt":"\/Date(-62135596800000-0000)\/","_aenderung":"\/Date(-62135596800000-0000)\/","mandant":0,"Datenindex":0,"Dateiname":"String","zip_dateiname":"String","SubPfad":"String","Upload":0,"DownloadExt":0,"Datum":"\/Date(-62135596800000-0000)\/","Link":"String","anlagen":"String","metadaten":"String","dateityp":0,"del":0,"hash":"String","guid":"String","server_hash":"String","PrimaryKey":0}}