← Back to team overview

dhis2-devs team mailing list archive

Re: DHIS-2 API's

 

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 <omerbutt2521@xxxxxxxxx> wrote:

> 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"}]}
>
>
> *------------------------------------------------------------------------------------------------------*
> *How Can I get name of the children and ancestors. ??*
>
>
> _______________________________________________
> 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
>
>


-- 
*Em Le Hong*
DHIS2 Implementation| *HISP Vietnam *
em.hispvietnam@xxxxxxxxx | *Skype:* em.hispvietnam@xxxxxxxxx

References