All Verbs | /restfiles/GetFileItemRQ |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetFileItemRQ
{
public BigDecimal carpeta = null;
public String usuario = null;
public BigDecimal getCarpeta() { return carpeta; }
public GetFileItemRQ setCarpeta(BigDecimal value) { this.carpeta = value; return this; }
public String getUsuario() { return usuario; }
public GetFileItemRQ setUsuario(String value) { this.usuario = value; return this; }
}
public static class GetDirectoryRS
{
public ArrayList<FileItemRecursive> FileItem = null;
public ArrayList<FileItemRecursive> getFileItem() { return FileItem; }
public GetDirectoryRS setFileItem(ArrayList<FileItemRecursive> value) { this.FileItem = value; return this; }
}
public static class FileItemRecursive
{
public BigDecimal idArchivo = null;
public BigDecimal carp_carp = null;
public BigDecimal carp_padre = null;
public Boolean isDirectory = null;
public String name = null;
public String usua_login = null;
public Date fecha = null;
public ArrayList<FileItemRecursive> items = null;
public BigDecimal getIdArchivo() { return idArchivo; }
public FileItemRecursive setIdArchivo(BigDecimal value) { this.idArchivo = value; return this; }
public BigDecimal getCarpCarp() { return carp_carp; }
public FileItemRecursive setCarpCarp(BigDecimal value) { this.carp_carp = value; return this; }
public BigDecimal getCarpPadre() { return carp_padre; }
public FileItemRecursive setCarpPadre(BigDecimal value) { this.carp_padre = value; return this; }
public Boolean getIsDirectory() { return isDirectory; }
public FileItemRecursive setIsDirectory(Boolean value) { this.isDirectory = value; return this; }
public String getName() { return name; }
public FileItemRecursive setName(String value) { this.name = value; return this; }
public String getUsuaLogin() { return usua_login; }
public FileItemRecursive setUsuaLogin(String value) { this.usua_login = value; return this; }
public Date getFecha() { return fecha; }
public FileItemRecursive setFecha(Date value) { this.fecha = value; return this; }
public ArrayList<FileItemRecursive> getItems() { return items; }
public FileItemRecursive setItems(ArrayList<FileItemRecursive> value) { this.items = value; return this; }
}
}
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 /restfiles/GetFileItemRQ HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
carpeta: 0,
usuario: String
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { FileItem: [ { } ] }