public interface ClientService
| Modifier and Type | Field and Description |
|---|---|
static String |
basePath |
static String |
id |
static String |
path |
| Modifier and Type | Method and Description |
|---|---|
retrofit2.Call<Client> |
create(ClientCreationInfo creationInfo) |
retrofit2.Call<Void> |
delete(long clientId) |
retrofit2.Call<Client> |
get(long clientId) |
retrofit2.Call<PaginatedClient> |
list(Map<String,Object> options) |
retrofit2.Call<Client> |
update(long clientId,
ClientUpdateInfo updateInfo) |
static final String basePath
static final String id
static final String path
@GET(value="clients") retrofit2.Call<PaginatedClient> list(@QueryMap Map<String,Object> options)
@GET(value="clients/{clientId}")
retrofit2.Call<Client> get(@Path(value="clientId")
long clientId)
@POST(value="clients") retrofit2.Call<Client> create(@Body ClientCreationInfo creationInfo)
@PATCH(value="clients/{clientId}")
retrofit2.Call<Client> update(@Path(value="clientId")
long clientId,
@Body
ClientUpdateInfo updateInfo)
@DELETE(value="clients/{clientId}")
retrofit2.Call<Void> delete(@Path(value="clientId")
long clientId)