| 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 .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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: application/json
Content-Type: application/json
Content-Length: length
{"Mandnr":0,"Dok_id":0}
HTTP/1.1 200 OK
Content-Type: application/json
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}}