API call for groups at root level
Problem to solve
In my app I need to get the groups at root level of GitLab. In order to do so I need to call all groups and loop through them to find the groups without a parent group. In our current instance that means calling 4 pages of 100 groups. That simply takes to long and can be much faster.
Target audience
Everybody that uses the API could benefit I guess. The app we create is called PostLab.app and will certainly benefit.
What does success look like, and how can we measure that?
It would be awesome if there was a simple API call to only get the groups at root level. E.g.
/api/v4/groups?parent_id=null
or
/api/v4/groups/0/subgroups
It would be a succes if would be much faster than the way it is now.