Add UserService

This commit is contained in:
Umberto Furno 2019-11-13 16:32:40 +01:00
parent 3460c68763
commit 955d5e3704

View File

@ -0,0 +1,29 @@
package wekan.wrapper.api;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import wekan.wrapper.entity.User;
import java.util.List;
public interface UserService {
/**
* Get all users.
*
* @return the list with all users
*/
@GET("api/users")
Call<List<User>> getAllUser();
/**
* Get user information
*
* @param userId ID user
* @return user information
*/
@GET("api/users/{user}")
Call<User> getUser(@Path("user") String userId);
}