=== modified file 'src/docbkx/en/dhis2_user_man_web_api.xml'
--- src/docbkx/en/dhis2_user_man_web_api.xml 2014-06-06 08:30:48 +0000
+++ src/docbkx/en/dhis2_user_man_web_api.xml 2014-06-11 06:44:51 +0000
@@ -471,18 +471,18 @@
role="italic">id and name for every object.
For object that are either collections, or is a complex object which have properties on their
own, you can use the format ?field=id,name,dataSets[id,name] which would return ?fields=id,name,dataSets[id,name] which would return id, name of the root, and the id and name of every dataSet on
that object. Negation can be done with the exclamation operator, and we have a set of presets
of field select (see below).
Example 1: Get id and
name on the indicators
- resource/api/indicators?field=id,name
+ resource/api/indicators?fields=id,name
Example 2: Get id,
name from dataElements, and also id and name from the dataSets on
- dataElements/api/dataElements?field=id,name,dataSets[id,name]
+ dataElements/api/dataElements?fields=id,name,dataSets[id,name]
To exclude a property from the output, you can use the '!' operator, this is allowed
anywhere in the query, and will simply not include that property (as it might have been
inserted in some of the presets).