I want to get a list of all the projects which are under a particular group in Gitlab. Here is the example scenario:
Group A (id: 1) has 3 Project
Group A / Project 1
Group A / Project 2
Group A / Project 3
Group B (id: 2) has 5 Projects
Group B / Project 1
Group B / Project 2
Group B / Project 3
Group B / Project 4
Group B / Project 5
Now if I hit the rest api GET /groups
it will give me only the list of groups. If i hit the rest api GET /projects/all
, it will give me a list of all the projects.
What I am looking for, is an operation something like GET /groups/:groupid/projects/all
That is: all the projects for that particular group. Like if I say GET /groups/1/projects/all
it will give me Project 1, Project 2 and Project 3
.
The only way I can think of is to get a list of all the projects and loop over them to see if it matches my group name, but this will be lot of unnecessary parsing.
How can I achieve this in a better way?
I am working on Gitlab CE 7.2.1. I am referring the Gitlab API documententation