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
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@gmail.com wrote:
Hi,
I have a requirement to get the list of all children for selected organisationunit not immediate children
Thanks and Regards
Mithilesh Kumar Thakur
So Is any url for web-api so that we can get the list of all children for selected organisationunit not immediate children.
–
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp