Pecuario.Backend

<back to all web services

RequestCredit

The following routes are available for this service:
POST/api/v1/credit/request
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class RequestCredit implements IPost
    {
        public String nombre = null;
        public String dpi = null;
        public String fechaDeNacimiento = null;
        public String telefono = null;
        public BigDecimal montoAFinanciar = null;
        public Integer regionId = null;
        public Integer cityId = null;
        
        public String getNombre() { return nombre; }
        public RequestCredit setNombre(String value) { this.nombre = value; return this; }
        public String getDpi() { return dpi; }
        public RequestCredit setDpi(String value) { this.dpi = value; return this; }
        public String getFechaDeNacimiento() { return fechaDeNacimiento; }
        public RequestCredit setFechaDeNacimiento(String value) { this.fechaDeNacimiento = value; return this; }
        public String getTelefono() { return telefono; }
        public RequestCredit setTelefono(String value) { this.telefono = value; return this; }
        public BigDecimal getMontoAFinanciar() { return montoAFinanciar; }
        public RequestCredit setMontoAFinanciar(BigDecimal value) { this.montoAFinanciar = value; return this; }
        public Integer getRegionId() { return regionId; }
        public RequestCredit setRegionId(Integer value) { this.regionId = value; return this; }
        public Integer getCityId() { return cityId; }
        public RequestCredit setCityId(Integer value) { this.cityId = value; return this; }
    }

    public static class RequestCreditResponse extends BaseResponse
    {
        public String id = null;
        
        public String getId() { return id; }
        public RequestCreditResponse setId(String value) { this.id = value; return this; }
    }

    public static class BaseResponse
    {
        public Status status = null;
        
        public Status getStatus() { return status; }
        public BaseResponse setStatus(Status value) { this.status = value; return this; }
    }

    public static class Status
    {
        public String message = null;
        public Integer statusCode = null;
        
        public String getMessage() { return message; }
        public Status setMessage(String value) { this.message = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public Status setStatusCode(Integer value) { this.statusCode = value; return this; }
    }

}

Java RequestCredit 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 /api/v1/credit/request HTTP/1.1 
Host: pecuario-backend.develsystems.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"nombre":"String","dpi":"String","fechaDeNacimiento":"String","telefono":"String","montoAFinanciar":0,"regionId":0,"cityId":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"id":"String"}