public interface UserService
| Modifier and Type | Method and Description |
|---|---|
retrofit2.Call<User> |
create(User userCreationInfo) |
retrofit2.Call<Void> |
delete(long userId) |
retrofit2.Call<User> |
get(long userId) |
retrofit2.Call<User> |
getSelf() |
retrofit2.Call<PaginatedList> |
list(Boolean isActive,
Instant updatedSince,
int page,
int perPage) |
retrofit2.Call<User> |
update(long userId,
UserUpdateInfo toChange) |
@GET(value="users") retrofit2.Call<PaginatedList> list(@Query(value="is_active") Boolean isActive, @Query(value="updated_since") Instant updatedSince, @Query(value="page") int page, @Query(value="per_page") int perPage)
@GET(value="users/{userId}")
retrofit2.Call<User> get(@Path(value="userId")
long userId)
@GET(value="users/me") retrofit2.Call<User> getSelf()
@PATCH(value="users/{userId}")
retrofit2.Call<User> update(@Path(value="userId")
long userId,
@Body
UserUpdateInfo toChange)
@DELETE(value="users/{userId}")
retrofit2.Call<Void> delete(@Path(value="userId")
long userId)