FrameAppWS

<back to all web services

FileUtilsRQ

Requires Authentication
The following routes are available for this service:
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(){}
}


Swift FileUtilsRQ DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

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/jsonl
Content-Type: text/jsonl
Content-Length: length

{"Files":[{"Nombre":"String","Base64File":"String","ExtRQ":"String"}],"DocMerge":false}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Success":false,"ErrorMessage":"String","Archivos":[{"Nombre":"String","Base64File":"String","Ext":"String"}]}