Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add getDescendantGroups() methods to GroupApi #907

Merged
merged 2 commits into from
Mar 30, 2023
Merged

Conversation

jmini
Copy link
Collaborator

@jmini jmini commented Feb 8, 2023

Add the methods for this endpoint:

GET /groups/:id/descendant_groups

Docs: https://docs.gitlab.com/ee/api/groups.html#list-a-groups-descendant-groups


This is similar to getSubGroups() but it returns all child groups in the tree (subgroups of subgroups recursively) as list.

I do not see the point of having all the methods with the different parameters as it was implemented for getSubGroups(), since using a GroupFilter with the builder pattern is better to add only the desired parameters to the request.

@jabby jabby merged commit d8a7ea9 into gitlab4j:master Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants