public interface ExpenseService
| Modifier and Type | Field and Description |
|---|---|
static String |
basePath |
static String |
id |
static String |
path |
| Modifier and Type | Method and Description |
|---|---|
retrofit2.Call<Expense> |
attachFile(long expenseId,
okhttp3.MultipartBody.Part receipt) |
retrofit2.Call<Expense> |
create(Expense creationInfo) |
retrofit2.Call<Void> |
delete(long expenseId) |
retrofit2.Call<Expense> |
get(long expenseId) |
retrofit2.Call<PaginatedList> |
list(Map<String,Object> options) |
retrofit2.Call<Expense> |
update(long expenseId,
ExpenseUpdateInfo updateInfo) |
static final String basePath
static final String id
static final String path
@GET(value="expenses") retrofit2.Call<PaginatedList> list(@QueryMap Map<String,Object> options)
@GET(value="expenses/{expenseId}")
retrofit2.Call<Expense> get(@Path(value="expenseId")
long expenseId)
@PATCH(value="expenses/{expenseId}")
retrofit2.Call<Expense> update(@Path(value="expenseId")
long expenseId,
@Body
ExpenseUpdateInfo updateInfo)
@Multipart
@PATCH(value="expenses/{expenseId}")
retrofit2.Call<Expense> attachFile(@Path(value="expenseId")
long expenseId,
@Part
okhttp3.MultipartBody.Part receipt)
@DELETE(value="expenses/{expenseId}")
retrofit2.Call<Void> delete(@Path(value="expenseId")
long expenseId)