← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-documenters/dhis2/dhis2-docbook-docs] Rev 882: Minor

 

------------------------------------------------------------
revno: 882
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2-docbook-docs
timestamp: Sat 2013-12-14 16:28:27 +0100
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-12-14 15:00:18 +0000
+++ src/docbkx/en/dhis2_user_man_web_api.xml	2013-12-14 15:28:27 +0000
@@ -691,8 +691,8 @@
   <section>
     <title>Sending individual data values</title>
     <para>This example will show how to send individual data values to be saved in a request. This
-      can be achieved by interacting with the <emphasis role="italic">dataValues</emphasis>
-      resource:</para>
+      can be achieved by sending a <emphasis role="italic">POST</emphasis> request to the <emphasis
+        role="italic">dataValues</emphasis> resource:</para>
     <screen>http://apps.dhis2.org/demo/api/dataValues</screen>
     <para>The following query parameters are supported for this resource:</para>
     <table frame="all">
@@ -750,7 +750,9 @@
     <para>If any of the identifiers given are invalid, if the data value or comment are invalid or
       if the data is locked, the response will contain the <emphasis role="italic">409
         Conflict</emphasis> status code and descriptive text message. If the operation lead to a
-      saved or updated value, <emphasis role="italic">200 OK</emphasis> will be returned.</para>
+      saved or updated value, <emphasis role="italic">200 OK</emphasis> will be returned. An example
+      of a request looks like this:</para>
+    <screen>curl "http://apps.dhis2.org/demo/api/dataValues?de=s46m5MS0hxu&amp;co=Prlt0C1RF0s&amp;pe=201301&amp;ou=DiszpKrYNg8&amp;value=12"; -X POST -u admin:district -v</screen>
   </section>
   <section>
     <title>Reading data values</title>