From 7f65a991cc691e000f5c9f7f4f0886fdd29fa13e Mon Sep 17 00:00:00 2001 From: Julien Lafourcade Date: Fri, 10 Feb 2017 15:48:42 +0100 Subject: [PATCH] Add queryParam for getProjects() We should do the same as getAllProjects() to retrieve all projects at once. --- src/main/java/com/messners/gitlab/api/ProjectApi.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/messners/gitlab/api/ProjectApi.java b/src/main/java/com/messners/gitlab/api/ProjectApi.java index 182347c85..3882b3dc7 100644 --- a/src/main/java/com/messners/gitlab/api/ProjectApi.java +++ b/src/main/java/com/messners/gitlab/api/ProjectApi.java @@ -31,7 +31,7 @@ public class ProjectApi extends AbstractApi { * @throws GitLabApiException */ public List getProjects() throws GitLabApiException { - Response response = get(Response.Status.OK, null, "projects"); + Response response = get(Response.Status.OK, UriComponent.decodeQuery("per_page=9999", true), "projects"); return (response.readEntity(new GenericType>() { })); }