All Verbs | /restfiles/InsertReportRQ |
---|
import Foundation
import ServiceStack
public class InsertReportRQ : Codable
{
public var usua_login:String
public var carp_carp:Double
public var rept_rept:Double
public var rept_nombre:String
public var rept_tipo:Int
public var rept_fecmodi:Date
public var rept_fecelimi:Date
public var rept_version:String
public var rept_tamano:Int
public var blob_blob:Double
public var vist_vist:Double
required public init(){}
}
public class InsertReportRS : Codable
{
public var isInsertado:Bool
public var error:String
required public init(){}
}
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 /restfiles/InsertReportRQ HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"usua_login":"String","carp_carp":0,"rept_rept":0,"rept_nombre":"String","rept_tipo":0,"rept_fecmodi":null,"rept_fecelimi":null,"rept_version":"String","rept_tamano":0,"blob_blob":0,"vist_vist":0}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"isInsertado":false,"Error":"String"}