From 955d5e3704374f588b1848a11f7700c321d7ef68 Mon Sep 17 00:00:00 2001 From: Umberto Furno Date: Wed, 13 Nov 2019 16:32:40 +0100 Subject: [PATCH] Add UserService --- .../java/wekan/wrapper/api/UserService.java | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 wrapper/src/main/java/wekan/wrapper/api/UserService.java diff --git a/wrapper/src/main/java/wekan/wrapper/api/UserService.java b/wrapper/src/main/java/wekan/wrapper/api/UserService.java new file mode 100644 index 0000000..6616895 --- /dev/null +++ b/wrapper/src/main/java/wekan/wrapper/api/UserService.java @@ -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> getAllUser(); + + /** + * Get user information + * + * @param userId ID user + * @return user information + */ + @GET("api/users/{user}") + Call getUser(@Path("user") String userId); + +}