FIBUdataServiceStack

<back to all web services

BeraterDokumentDownloadRequest

The following routes are available for this service:
GET, POST/fibuscan/BeraterDokumentDownload
import Foundation
import ServiceStack

public class BeraterDokumentDownloadRequest : Codable
{
    public var mandnr:Int
    public var dok_id:Int

    required public init(){}
}

public class DokumentDownloadResponse : Codable
{
    public var dokument_bin:[UInt8] = []
    public var dokument:dokumente

    required public init(){}
}

public class dokumente : IPrimaryKey, IMandnr, IDel, ITableBaseErstelltAenderung, Codable
{
    public var id:Int?
    public var _erstellt:Date?
    public var _aenderung:Date?
    public var mandant:Int?
    public var datenindex:Int?
    public var dateiname:String
    public var zip_dateiname:String
    public var subPfad:String
    public var upload:Int?
    public var downloadExt:Int?
    public var datum:Date?
    public var link:String
    public var anlagen:String
    public var metadaten:String
    public var dateityp:Int?
    public var del:Int?
    public var hash:String
    public var guid:String
    // @Ignore()
    public var server_hash:String

    // @Ignore()
    public var primaryKey:Int?

    required public init(){}
}


Swift 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}}