| All Verbs | /utilidades/FilesConvertPdf |
|---|
import Foundation
import ServiceStack
public class FileUtilsRQ : Codable
{
public var files:[FilesData] = []
public var docMerge:Bool
required public init(){}
}
public class FilesData : Codable
{
public var nombre:String
public var base64File:String
public var extRQ:String
required public init(){}
}
public class FileUtilsRS : Codable
{
public var success:Bool
public var errorMessage:String
public var archivos:[FilesRS] = []
required public init(){}
}
public class FilesRS : Codable
{
public var nombre:String
public var base64File:String
public var ext:String
required public init(){}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /utilidades/FilesConvertPdf HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Files:
[
{
Nombre: String,
Base64File: String,
ExtRQ: String
}
],
DocMerge: False
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Success: False,
ErrorMessage: String,
Archivos:
[
{
Nombre: String,
Base64File: String,
Ext: String
}
]
}