FrameAppWS

<back to all web services

GetFileItemRQ

Requires Authentication
The following routes are available for this service:
All Verbs/restfiles/GetFileItemRQ
import Foundation
import ServiceStack

public class GetFileItemRQ : Codable
{
    public var carpeta:Double
    public var usuario:String

    required public init(){}
}

public class GetDirectoryRS : Codable
{
    public var fileItem:[FileItemRecursive] = []

    required public init(){}
}

public class FileItemRecursive : Codable
{
    public var idArchivo:Double?
    public var carp_carp:Double?
    public var carp_padre:Double?
    public var isDirectory:Bool
    public var name:String
    public var usua_login:String
    public var fecha:Date
    public var items:[FileItemRecursive] = []

    required public init(){}
}


Swift GetFileItemRQ 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 /restfiles/GetFileItemRQ HTTP/1.1 
Host: soluser-recaudo.sgsas.co 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"carpeta":0,"usuario":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"FileItem":[{}]}