Commit 56534cff authored by Tim Olshansky's avatar Tim Olshansky

Merge pull request #130 from askoog/master

Support for listing more than 20 project members
parents 1c170218 d6b8021b
......@@ -1702,11 +1702,19 @@ public class GitlabAPI {
return getProjectMembers(project.getId());
}
public List<GitlabProjectMember> getProjectMembers(GitlabProject project, Pagination pagination) throws IOException {
return getProjectMembers(project.getId(), pagination);
}
public List<GitlabProjectMember> getProjectMembers(Serializable projectId) throws IOException {
String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + GitlabProjectMember.URL;
return Arrays.asList(retrieve().to(tailUrl, GitlabProjectMember[].class));
return getProjectMembers(projectId, new Pagination());
}
public List<GitlabProjectMember> getProjectMembers(Serializable projectId, Pagination pagination) throws IOException {
String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + GitlabProjectMember.URL + pagination.asQuery();
return Arrays.asList(retrieve().to(tailUrl, GitlabProjectMember[].class));
}
/**
* This will fail, if the given namespace is a user and not a group
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment