public interface ExpenseCategoryService
| Modifier and Type | Field and Description |
|---|---|
static String |
basePath |
static String |
id |
static String |
path |
| Modifier and Type | Method and Description |
|---|---|
retrofit2.Call<ExpenseCategory> |
create(ExpenseCategory creationInfo) |
retrofit2.Call<Void> |
delete(long expenseCategoryId) |
retrofit2.Call<ExpenseCategory> |
get(long expenseCategoryId) |
retrofit2.Call<PaginatedList> |
list(Map<String,Object> options) |
retrofit2.Call<ExpenseCategory> |
update(long expenseCategoryId,
ExpenseCategoryUpdateInfo updateInfo) |
static final String basePath
static final String id
static final String path
@GET(value="expense_categories") retrofit2.Call<PaginatedList> list(@QueryMap Map<String,Object> options)
@GET(value="expense_categories/{expenseCategoryId}")
retrofit2.Call<ExpenseCategory> get(@Path(value="expenseCategoryId")
long expenseCategoryId)
@POST(value="expense_categories") retrofit2.Call<ExpenseCategory> create(@Body ExpenseCategory creationInfo)
@PATCH(value="expense_categories/{expenseCategoryId}")
retrofit2.Call<ExpenseCategory> update(@Path(value="expenseCategoryId")
long expenseCategoryId,
@Body
ExpenseCategoryUpdateInfo updateInfo)
@DELETE(value="expense_categories/{expenseCategoryId}")
retrofit2.Call<Void> delete(@Path(value="expenseCategoryId")
long expenseCategoryId)