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

API broken: Group Hierarchie #183

Closed
DumbergerL opened this issue Dec 11, 2023 · 3 comments
Closed

API broken: Group Hierarchie #183

DumbergerL opened this issue Dec 11, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@DumbergerL
Copy link
Contributor

The ChurchTools API Endpoint /api/groups/hierarchies?ids%5B%5D=9 is broken.

TODO: Create Support Ticket for ChurchTools

@DumbergerL DumbergerL added the bug Something isn't working label Dec 11, 2023
@djschilling
Copy link

I think that is just a misunderstanding.
The returned groups must match all filters. So if the child or the parent is not part of the filter nothing is returned. So if you just provide one Id there cannot be returned anything.

@DumbergerL
Copy link
Contributor Author

Thank you @djschilling! That clears up some of my confusion. This means that if I want to retrieve the hierarchy of a single group, I must first retrieve the entire hierarchy of all groups (maybe filtered to the group type) and then filter out the relevant groups in the code?

@djschilling
Copy link

For this use case you can use /groups/{groupId}/children or /groups/{groupId}/parents

DumbergerL added a commit that referenced this issue Jan 9, 2024
DumbergerL added a commit that referenced this issue Jan 9, 2024
DumbergerL added a commit that referenced this issue Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants