=== modified file 'src/docbkx/en/dhis2_user_man_web_api.xml' --- src/docbkx/en/dhis2_user_man_web_api.xml 2014-05-20 19:17:55 +0000 +++ src/docbkx/en/dhis2_user_man_web_api.xml 2014-05-23 18:07:14 +0000 @@ -945,9 +945,9 @@ </dataValues> </event> To perform some testing we can save the XML payload as a file called events.xml and send it as a POST request to the events resource in - the API using curl with the following command: - curl -d @events.xml "http://apps.dhis2.org/demo/api/events" -H "Content-Type:application/xml" -u admin:district -v + role="italic"> event.xml and send it as a POST request to the events resource + in the API using curl with the following command: + curl -d @event.xml "http://apps.dhis2.org/demo/api/events" -H "Content-Type:application/xml" -u admin:district -v The same payload in JSON format looks like this: { "program": "eBAyeGv0exc", @@ -966,8 +966,8 @@ ] } To send this you can save it to a file called events.json and use curl like this: - curl -d @events.xml "localhost:8080/api/events" -H "Content-Type:application/json" -u admin:district -v + >event.json and use curl like this: + curl -d @event.json "localhost:8080/api/events" -H "Content-Type:application/json" -u admin:district -v We also support sending multiple events at the same time. A payload in XML format might look like this: <?xml version="1.0" encoding="utf-8"?>