------------------------------------------------------------ revno: 775 committer: Lars Helge Ă˜verland <larshe...@gmail.com> branch nick: dhis2-docbook-docs timestamp: Mon 2013-07-15 21:01:08 +0200 message: Minor modified: src/docbkx/en/dhis2_user_man_web_api.xml
-- lp:~dhis2-documenters/dhis2/dhis2-docbook-docs https://code.launchpad.net/~dhis2-documenters/dhis2/dhis2-docbook-docs Your team DHIS 2 developers is subscribed to branch lp:~dhis2-documenters/dhis2/dhis2-docbook-docs. To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-documenters/dhis2/dhis2-docbook-docs/+edit-subscription
=== modified file 'src/docbkx/en/dhis2_user_man_web_api.xml' --- src/docbkx/en/dhis2_user_man_web_api.xml 2013-07-09 10:12:19 +0000 +++ src/docbkx/en/dhis2_user_man_web_api.xml 2013-07-15 19:01:08 +0000 @@ -297,13 +297,17 @@ along with getting the last updates from February 2012. This means that every single type that has been updated will be retrieved.<screen>curl -H "Accept: application/xml" -u admin:district "http://apps.dhis2.org/demo/api/metaData?lastUpdated=02/2012"</screen></para> - <para>The meta-data resource can also be used to write or update meta-data by using the POST + <para><emphasis role="bold">Example: Create meta-data</emphasis></para> + <para>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 "application/json" content type respectively. The request payload content will be accepted in several formats, including plain text, zipped and gzipped. POSTing a meta-data payload can be done for example like this, where metaData.xml is a file in the same directory with the meta-data content:</para> - <screen>curl -H "Content-Type: application/xml" -u admin:district -d @metaData.xml "http://apps.dhis2.org/demo/api/metaData" -X POST</screen> + <screen>curl -H "Content-Type: application/xml" -u admin:district -d @metaData.xml "http://apps.dhis2.org/demo/api/metaData" -X POST -v</screen> + <para>The import will happen in a asyncronous process which implies that the response will + return as soon as the process is started. The response status code to be expected is 204 No + Content.</para> </section> <section> <title>Sending data values</title>
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : dhis2-devs@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp