All Verbs | /utilidades/ComText |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class CombinacionTextosRQ
{
public Integer Id = null;
public HashMap<String,Object> DatosForma = null;
public HashMap<String,Object> DatosAdicionales = null;
public Integer getId() { return Id; }
public CombinacionTextosRQ setId(Integer value) { this.Id = value; return this; }
public HashMap<String,Object> getDatosForma() { return DatosForma; }
public CombinacionTextosRQ setDatosForma(HashMap<String,Object> value) { this.DatosForma = value; return this; }
public HashMap<String,Object> getDatosAdicionales() { return DatosAdicionales; }
public CombinacionTextosRQ setDatosAdicionales(HashMap<String,Object> value) { this.DatosAdicionales = value; return this; }
}
public static class CombinacionTextosRS
{
public Boolean Success = null;
public String Res = null;
public String Error = null;
public String Texto = null;
public String Formato = null;
public Boolean isSuccess() { return Success; }
public CombinacionTextosRS setSuccess(Boolean value) { this.Success = value; return this; }
public String getRes() { return Res; }
public CombinacionTextosRS setRes(String value) { this.Res = value; return this; }
public String getError() { return Error; }
public CombinacionTextosRS setError(String value) { this.Error = value; return this; }
public String getTexto() { return Texto; }
public CombinacionTextosRS setTexto(String value) { this.Texto = value; return this; }
public String getFormato() { return Formato; }
public CombinacionTextosRS setFormato(String value) { this.Formato = 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 /utilidades/ComText HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Id: 0,
DatosForma:
{
String: {}
},
DatosAdicionales:
{
String: {}
}
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { Success: False, Res: String, Error: String, Texto: String, Formato: String }