← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-documenters/dhis2/dhis2-docbook-docs] Rev 935: Approval

 

------------------------------------------------------------
revno: 935
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2-docbook-docs
timestamp: Thu 2014-01-02 21:58:53 +0100
message:
  Approval
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-01-02 11:18:05 +0000
+++ src/docbkx/en/dhis2_user_man_web_api.xml	2014-01-02 20:58:53 +0000
@@ -1141,6 +1141,11 @@
     <para>To check the status for approval you can issue a <emphasis role="italic">GET</emphasis>
       request to the dataApprovals resource:</para>
     <screen>api/dataApprovals</screen>
+    <para>To get approval state for a data set you can issue a GET request similar to this:</para>
+    <screen>api/dataApprovals?ds=aLpVgfXiz0f&amp;pe=2013&amp;ou=DiszpKrYNg8</screen>
+    <para>To approval a data set which has attributes you can issue a <emphasis role="italic"
+        >POST</emphasis> request like this:</para>
+    <screen>curl "http://apps.dhis2.org/demo/api/dataApprovals?ds=lyLU2wR22tC&amp;pe=201312&amp;ou=DiszpKrYNg8&amp;cc=O4VaNks6tta&amp;cp=C6nZpLKjEJr;i4Nbp8S2G6A"; -X POST -u admin:district -v</screen>
     <table frame="all">
       <title>Approval status</title>
       <tgroup cols="2">