=== modified file 'src/docbkx/en/dhis2_user_man_web_api.xml'
--- src/docbkx/en/dhis2_user_man_web_api.xml 2013-07-15 19:01:08 +0000
+++ src/docbkx/en/dhis2_user_man_web_api.xml 2013-07-16 10:01:19 +0000
@@ -276,7 +276,8 @@
lastUpdated
date
false
- Three date formats are supported: YEAR | MONTH/YEAR | DAY/MONTH/YEAR
+ Several formats are available: yyyy, yyyy-MM, yyyy-MM-dd, yyyyMM,
+ yyyyMMdd
Filters the meta-data based on the lastUpdated field.
@@ -287,16 +288,17 @@
Example: Get a filtered set of meta-data that was updated since August 1
2012
- As described in the last section, there is a number of options you can apply to /api/metaData to give you a filtered view. The use-case we will be
+ As described in the last section, there is a number of options you can apply to /api/metaData to give you a filtered view. The use-case we will be
looking into here is where you want a nightly job that synchronizes organisation units. We
will be using cURL as the HTTP
- client.curl -H "Accept: application/xml" -u admin:district "http://apps.dhis2.org/demo/api/metaData?assumeTrue=false&organisationUnits=true&lastUpdated=01/08/2012"
+ client.curl -H "Accept: application/xml" -u admin:district "http://apps.dhis2.org/demo/api/metaData?assumeTrue=false&organisationUnits=true&lastUpdated=2012-08-01"
Example: Get meta-data that was updated since February
2012
This example will just the default assumeTrue setting,
along with getting the last updates from February 2012. This means that every single type that
has been updated will be
- retrieved.curl -H "Accept: application/xml" -u admin:district "http://apps.dhis2.org/demo/api/metaData?lastUpdated=02/2012"
+ retrieved.curl -H "Accept: application/xml" -u admin:district "http://apps.dhis2.org/demo/api/metaData?lastUpdated=2012-02"
Example: Create meta-data
The meta-data resource can also be used to create or update meta-data by using the POST
HTTP method. The meta-data content can be both XML and JSON, using "application/xml" and