← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-documenters/dhis2/dhis2-docbook-docs] Rev 992: Event query

 

------------------------------------------------------------
revno: 992
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2-docbook-docs
timestamp: Fri 2014-03-28 16:55:14 +0100
message:
  Event query
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-03-28 15:50:57 +0000
+++ src/docbkx/en/dhis2_user_man_web_api.xml	2014-03-28 15:55:14 +0000
@@ -947,21 +947,21 @@
     <section>
       <title>Examples</title>
       <para>Query for all events with children of a certain organisation unit:
-          <screen>/api/events?orgUnit=YuQRtpLP10I&amp;ouMode=CHILDREN</screen></para>
+          <screen>api/events.json?orgUnit=YuQRtpLP10I&amp;ouMode=CHILDREN</screen></para>
       <para>Query for all events with all descendants of a certain organisation unit, implying all
           organisation units in the
-          sub-hierarchy:<screen>/api/events?orgUnit=O6uvpzGd5pu&amp;ouMode=DESCENDANTS</screen></para>
+          sub-hierarchy:<screen>api/events.json?orgUnit=O6uvpzGd5pu&amp;ouMode=DESCENDANTS</screen></para>
       <para>Query for all events with a certain program and organisation unit:
-          <screen>/api/events?orgUnit=DiszpKrYNg8&amp;program=eBAyeGv0exc</screen></para>
+          <screen>api/events.json?orgUnit=DiszpKrYNg8&amp;program=eBAyeGv0exc</screen></para>
       <para>Query for all events with a certain program and organisation unit for a specific tracked
           entity instance:
-          <screen>/api/events?orgUnit=DiszpKrYNg8&amp;program=eBAyeGv0exc&amp;trackedEntityInstance=ID</screen></para>
+          <screen>api/events.json?orgUnit=DiszpKrYNg8&amp;program=eBAyeGv0exc&amp;trackedEntityInstance=gfVxE3ALA9m</screen></para>
       <para>Query for all events with a certain program and organisation unit older or equal to
           2014-02-03:
-          <screen>/api/events?orgUnit=DiszpKrYNg8&amp;program=eBAyeGv0exc&amp;endDate=2014-02-03</screen></para>
+          <screen>api/events.json?orgUnit=DiszpKrYNg8&amp;program=eBAyeGv0exc&amp;endDate=2014-02-03</screen></para>
       <para>Query for all events with a certain program stage, organisation unit and tracked entity
           instance in the year 2014:
-          <screen>/api/events?orgUnit=DiszpKrYNg8&amp;program=eBAyeGv0exc&amp;trackedEntityInstance=ID&amp;startDate=2014-01-01&amp;endDate=2014-12-31</screen></para>
+          <screen>api/events.json?orgUnit=DiszpKrYNg8&amp;program=eBAyeGv0exc&amp;trackedEntityInstance=gfVxE3ALA9m&amp;startDate=2014-01-01&amp;endDate=2014-12-31</screen></para>
     </section>
   </section>
   </section>