| 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 .csv suffix or ?format=csv
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: text/csv
Content-Type: text/csv
Content-Length: length
{"OnlinehandelDateien_ids":[0],"mit_original_dateien":false}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"error":"String","result":false,"dateien_inhalte":{"0":"AA=="},"original_dateien_inhalte":{"0":"AA=="}}