Commit a263f525 authored by Mirko Friedenhagen's avatar Mirko Friedenhagen

Return a list of projects which are owned by the authenticated user.

parent fd82dab3
...@@ -583,6 +583,18 @@ public class GitlabAPI { ...@@ -583,6 +583,18 @@ public class GitlabAPI {
return retrieve().getAll(tailUrl, GitlabProject[].class); return retrieve().getAll(tailUrl, GitlabProject[].class);
} }
/**
*
* Get a list of projects owned by the authenticated user.
*
* @return A list of gitlab projects
* @throws IOException
*/
public List<GitlabProject> getOwnedProjects() throws IOException {
String tailUrl = GitlabProject.URL + "/owned";
return retrieve().getAll(tailUrl, GitlabProject[].class);
}
/** /**
* *
* Get a list of projects accessible by the authenticated user. * Get a list of projects accessible by the authenticated user.
......
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