[Dhis2-devs] DHIS-2 API's

2017-08-23 Thread Omer Butt
Sir I used that API : *:/api/organisationUnits/OYfCChzZ1wx.json?fields=ancestors,children,name* *Response :* {"name":"Bannu","children":[{"id":"yvVnd97UiJN"},{"id":"cdlEAe4BMS2"}],"ancestors":[{"id":"osCztkmFYud"},{"id":"KH8VFLnpwWL"}]} *--

[Dhis2-devs] DHIS-2 API's

2017-08-23 Thread Omer Butt
Sir, Will there a API to get information about facilities attaced to orgunit group. Like BHU is a orgunit group. will i access the names of facilities that under BHU. Thanks. ___ Mailing list: https://launchpad.net/~dhis2-devs Post to : dhis2-devs@l

Re: [Dhis2-devs] DHIS-2 API's

2017-08-23 Thread Em Le Hong
Hi Omer, You can try something like this: ?fields=children[name,id],ancestors[name,id] On Thu, Aug 24, 2017 at 12:29 PM, Omer Butt wrote: > Sir I used that API : > *:/api/organisationUnits/OYfCChzZ1wx.json?fields=ancestors,children,name* > > *Response :* > {"name":"Bannu","children":[{"id":"yv