4

I want to use gitlab apis to get all the projects and sub-projects of the group, that is the info I get when I go to the group's page

I noticed that gitlab's ui uses

https://gitlab.com/groups/<group_name>/<subgroup_name>/-/children.json

To get the projects and subgroups of a group.

I wonder if there's something like that or I have to build it using the groups/xxx/subgroups and grops/xxx/projects endpoints recursively.

1 Answer 1

7

The API endpoint to list a group's projects has an include_subgroups attribute that will include all of the projects listed under the subgroups, is that what you're trying to do?

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.