dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #47530
API: dataSets.dataElements
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
Follow ups