dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #39059
Re: Web-api support for getting all children for selected organisationunit not immediate children
Hey,
You can do something like this:
https://apps.dhis2.org/demo/api/organisationUnits/jUb8gELQApl.json?includeDescendants=true
However depending on for which organisation unit you do this it might
become a very heavy request. (If you request your top level it will return
you all the orgunits)
What is the use case why you need to get all the children instead of just a
few levels?
Otherwise you could always do something like this:
https://apps.dhis2.org/demo/api/organisationUnits/jUb8gELQApl.json?fields=name,id,children[name,id,children[name,id]]
Regards,
Mark
On Sat, Aug 22, 2015 at 11:39 AM, Mithilesh Kumar Thakur <
mithilesh.hisp@xxxxxxxxx> wrote:
>
> Hi,
> I have a requirement to get the list of all children for selected
> organisationunit not immediate children
>
> So Is any url for web-api so that we can get the list of all children
> for selected organisationunit not immediate children.
>
>
> --
>
> Thanks and Regards
>
> Mithilesh Kumar Thakur
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help : https://help.launchpad.net/ListHelp
>
>
References