FIBUdataServiceStack

<back to all web services

OnlinehandelDateienDownloadRequest

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

public class OnlinehandelDateienDownloadRequest : Codable
{
    public var onlinehandelDateien_ids:[Int] = []
    public var mit_original_dateien:Bool

    required public init(){}
}

public class OnlinehandelDateienDownloadResponse : Codable
{
    public var error:String
    public var result:Bool
    public var dateien_inhalte:[Int:[UInt8]] = [:]
    public var original_dateien_inhalte:[Int:[UInt8]] = [:]

    required public init(){}
}


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

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /fibuscan/Onlinehandel/OnlinehandelDateienDownload HTTP/1.1 
Host: ws4.fibudata.net 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"OnlinehandelDateien_ids":[0],"mit_original_dateien":false}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"error":"String","result":false,"dateien_inhalte":{"0":"AA=="},"original_dateien_inhalte":{"0":"AA=="}}