GET | /api/v1/logs/recharge |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;
public class dtos
{
public static class LogRechargeRequest extends PagingRequest
{
public String type = null;
public Integer price = null;
public Date fromDate = null;
public Date toDate = null;
public String getType() { return type; }
public LogRechargeRequest setType(String value) { this.type = value; return this; }
public Integer getPrice() { return price; }
public LogRechargeRequest setPrice(Integer value) { this.price = value; return this; }
public Date getFromDate() { return fromDate; }
public LogRechargeRequest setFromDate(Date value) { this.fromDate = value; return this; }
public Date getToDate() { return toDate; }
public LogRechargeRequest setToDate(Date value) { this.toDate = value; return this; }
}
public static class PagingRequest
{
public Integer page = null;
public Integer limit = null;
public Integer offSet = null;
public Integer getPage() { return page; }
public PagingRequest setPage(Integer value) { this.page = value; return this; }
public Integer getLimit() { return limit; }
public PagingRequest setLimit(Integer value) { this.limit = value; return this; }
public Integer getOffSet() { return offSet; }
public PagingRequest setOffSet(Integer value) { this.offSet = value; return this; }
}
public static class PageResponse<Object> implements IResponseRequest
{
public Integer code = null;
public String message = null;
public ArrayList<Object> data = null;
public Pagination pagination = null;
public Integer getCode() { return code; }
public PageResponse<Object> setCode(Integer value) { this.code = value; return this; }
public String getMessage() { return message; }
public PageResponse<Object> setMessage(String value) { this.message = value; return this; }
public ArrayList<Object> getData() { return data; }
public PageResponse<Object> setData(ArrayList<Object> value) { this.data = value; return this; }
public Pagination getPagination() { return pagination; }
public PageResponse<Object> setPagination(Pagination value) { this.pagination = value; return this; }
}
public static class Pagination
{
public Long total = null;
public Integer pages = null;
public Long offset = null;
public Integer limit = null;
public Integer currentPage = null;
public Long getTotal() { return total; }
public Pagination setTotal(Long value) { this.total = value; return this; }
public Integer getPages() { return pages; }
public Pagination setPages(Integer value) { this.pages = value; return this; }
public Long getOffset() { return offset; }
public Pagination setOffset(Long value) { this.offset = value; return this; }
public Integer getLimit() { return limit; }
public Pagination setLimit(Integer value) { this.limit = value; return this; }
public Integer getCurrentPage() { return currentPage; }
public Pagination setCurrentPage(Integer value) { this.currentPage = 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.
GET /api/v1/logs/recharge HTTP/1.1 Host: efun-id-api-sandbox.efun.vn Accept: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { code: 0, message: String, data: [ { } ] }