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); + +}