public interface UserService
| Modifier and Type | Method and Description |
|---|---|
retrofit2.Call<User> |
create(java.util.Map<java.lang.String,java.lang.Object> options) |
retrofit2.Call<java.lang.Void> |
delete(long userId) |
retrofit2.Call<User> |
get(long userId) |
retrofit2.Call<User> |
getSelf() |
retrofit2.Call<Users> |
listAll() |
retrofit2.Call<User> |
update(long userId,
java.util.Map<java.lang.String,java.lang.Object> options) |
@GET(value="users") retrofit2.Call<Users> listAll()
@GET(value="users/{userId}")
retrofit2.Call<User> get(@Path(value="userId")
long userId)
@GET(value="users/me") retrofit2.Call<User> getSelf()
@POST(value="users") retrofit2.Call<User> create(@Body java.util.Map<java.lang.String,java.lang.Object> options)
@PATCH(value="users/{userId}")
retrofit2.Call<User> update(@Path(value="userId")
long userId,
@Body
java.util.Map<java.lang.String,java.lang.Object> options)
@DELETE(value="users/{userId}")
retrofit2.Call<java.lang.Void> delete(@Path(value="userId")
long userId)