← Back to team overview

dhis2-users team mailing list archive

Re: API: dataSets.dataElements

 

Thanks Uwe,

I have been trying to figure this out as well.



On 3 November 2016 at 04:04, Uwe Wahser <uwe@xxxxxxxxx> wrote:

> just found the answer myself: it has to be
> https://play.dhis2.org/demo/api/dataSets/N4fIX1HL3TQ.json?
> paging=false&fields=dataSetElements[dataElement[id,code,name]]
>
> the other question remains: why cant I use the old syntax by adding 24 or
> 23 to
> the url?
>
> Regards,
>
> Uwe
>
> ---
> > Uwe Wahser <uwe@xxxxxxxxx> hat am 3. November 2016 um 09:52 geschrieben:
> >
> >
> > Dear all,
> >
> > I am a bit confused about the api in 2.25. Before, I was able to list
> > dataElements of a given dataSet via
> > https://play.dhis2.org/demo/api/dataSets/N4fIX1HL3TQ.json?
> paging=false&fields=dataElements[id,code,name]
> >
> > As I understand from the manual, this has changed to
> > https://play.dhis2.org/demo/api/dataSets/N4fIX1HL3TQ.json?
> paging=false&fields=dataSetElements[id,code,name]
> >
> > Two issues in this context:
> > 1 - I would have expected to be able to use the old syntax by adding 24
> or 23
> > into the url - that doesn't work.
> > 2 - the new syntax only works for the id of a dataSetElement and doesn't
> bring
> > up code nor name. fields=dataSetElements[:all] only brings up a few
> attribute,
> > but not neither code nor name.
> >
> > Am I missing something? Haven't tested with other sub-ressources, yet.
> >
> > Thanks,
> >
> > Uwe
> >
> > _______________________________________________
> > Mailing list: https://launchpad.net/~dhis2-users
> > Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~dhis2-users
> > More help   : https://help.launchpad.net/ListHelp
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users
> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>

Follow ups

References