GET | /api/v1/logs/recharge |
---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using efun.id.api.ServiceModel;
namespace efun.id.api.ServiceModel
{
public partial class LogRechargeRequest
: PagingRequest
{
public virtual string Type { get; set; }
public virtual int Price { get; set; }
public virtual DateTime FromDate { get; set; }
public virtual DateTime ToDate { get; set; }
}
public partial class PageResponse<Object>
: IResponseRequest
{
public PageResponse()
{
Data = new List<Object>{};
}
public virtual int Code { get; set; }
public virtual string Message { get; set; }
public virtual List<Object> Data { get; set; }
public virtual Pagination Pagination { get; set; }
}
public partial class Pagination
{
public virtual long Total { get; set; }
public virtual int Pages { get; set; }
public virtual long Offset { get; set; }
public virtual int Limit { get; set; }
public virtual int CurrentPage { get; set; }
}
public partial class PagingRequest
{
public virtual int Page { get; set; }
public virtual int Limit { get; set; }
public virtual int OffSet { get; set; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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/csv
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"code":0,"message":"String","data":[{}],"pagination":null}