| All Verbs | /Transactions/Company/{CompanyId} | ||
|---|---|---|---|
| All Verbs | /Transactions/Company/{CompanyId}/{Start}/{Take} | ||
| All Verbs | /Transactions/Company/{CompanyId}/{Start}/{Take}/{ColumnNameToOrderBy}/{OrderByDesc} | ||
| All Verbs | /Transactions/Company/{CompanyId}/{UserId} | ||
| All Verbs | /Transactions/Company/{CompanyId}/{Start}/{Take}/{UserId} |
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class TransactionsRequest
{
public Integer companyId = null;
public Integer start = null;
public Integer take = null;
public String userId = null;
public Integer columnNameToOrderBy = null;
public Boolean orderByDesc = null;
public Boolean inactive = null;
public Integer getCompanyId() { return companyId; }
public TransactionsRequest setCompanyId(Integer value) { this.companyId = value; return this; }
public Integer getStart() { return start; }
public TransactionsRequest setStart(Integer value) { this.start = value; return this; }
public Integer getTake() { return take; }
public TransactionsRequest setTake(Integer value) { this.take = value; return this; }
public String getUserId() { return userId; }
public TransactionsRequest setUserId(String value) { this.userId = value; return this; }
public Integer getColumnNameToOrderBy() { return columnNameToOrderBy; }
public TransactionsRequest setColumnNameToOrderBy(Integer value) { this.columnNameToOrderBy = value; return this; }
public Boolean isOrderByDesc() { return orderByDesc; }
public TransactionsRequest setOrderByDesc(Boolean value) { this.orderByDesc = value; return this; }
public Boolean isInactive() { return inactive; }
public TransactionsRequest setInactive(Boolean value) { this.inactive = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Transactions/Company/{CompanyId} HTTP/1.1
Host: cip-reporting-dev.chargeitpro.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"companyId":0,"start":0,"take":0,"userId":"String","columnNameToOrderBy":0,"orderByDesc":false,"inactive":false}