← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-documenters/dhis2/dhis2-docbook-docs] Rev 1076: Typo

 

------------------------------------------------------------
revno: 1076
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2-docbook-docs
timestamp: Fri 2014-05-23 20:07:14 +0200
message:
  Typo
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	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 @@
   &lt;/dataValues>
 &lt;/event></screen>
     <para>To perform some testing we can save the XML payload as a file called<emphasis
-        role="italic"> events.xml</emphasis> and send it as a POST request to the events resource in
-      the API using curl with the following command:</para>
-    <screen>curl -d @events.xml "http://apps.dhis2.org/demo/api/events"; -H "Content-Type:application/xml" -u admin:district -v</screen>
+          role="italic"> event.xml</emphasis> and send it as a POST request to the events resource
+        in the API using curl with the following command:</para>
+    <screen>curl -d @event.xml "http://apps.dhis2.org/demo/api/events"; -H "Content-Type:application/xml" -u admin:district -v</screen>
     <para>The same payload in JSON format looks like this:</para>
     <screen>{
   "program": "eBAyeGv0exc",
@@ -966,8 +966,8 @@
   ]
 }</screen>
     <para>To send this you can save it to a file called <emphasis role="italic"
-        >events.json</emphasis> and use curl like this:</para>
-    <screen>curl -d @events.xml "localhost:8080/api/events" -H "Content-Type:application/json" -u admin:district -v</screen>
+          >event.json</emphasis> and use curl like this:</para>
+    <screen>curl -d @event.json "localhost:8080/api/events" -H "Content-Type:application/json" -u admin:district -v</screen>
     <para>We also support sending multiple events at the same time. A payload in XML format might
       look like this: </para>
     <screen>&lt;?xml version="1.0" encoding="utf-8"?>