dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #31618
[Branch ~dhis2-documenters/dhis2/dhis2-docbook-docs] Rev 1141: minor update
------------------------------------------------------------
revno: 1141
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2-docbook-docs
timestamp: Wed 2014-07-16 12:15:03 +0700
message:
minor update
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-07-15 20:49:16 +0000
+++ src/docbkx/en/dhis2_user_man_web_api.xml 2014-07-16 05:15:03 +0000
@@ -1147,13 +1147,13 @@
<para><emphasis role="bold">Update</emphasis>: To update an existing event, the format of the
payload is the same, but the URL you are posting to must add the identifier to the end of
the URL string and the request must be PUT.
- <screen>curl -X PUT -d @updated_event.xml "localhost/api/events/Abcas12322" -H "Content-Type:application/xml" -u admin:district -v</screen><screen>curl -X PUT -d @updated_event.json "localhost/api/events/Abcas12322" -H "Content-Type:application/json" -u admin:district -v</screen></para>
+ <screen>curl -X PUT -d @updated_event.xml "localhost/api/events/ID" -H "Content-Type:application/xml" -u admin:district -v</screen><screen>curl -X PUT -d @updated_event.json "localhost/api/events/ID" -H "Content-Type:application/json" -u admin:district -v</screen></para>
<para><emphasis role="bold">Delete</emphasis>: To delete an existing event, all you need is to
send a DELETE request with a identifier reference to the server you are
- using.<screen>curl -X DELETE "localhost/api/events/Abcas12322" -u admin:district -v</screen></para>
+ using.<screen>curl -X DELETE "localhost/api/events/ID" -u admin:district -v</screen></para>
<para><emphasis role="bold">Get</emphasis>: To get an existing event you can issue a GET request
including the identifier like
- this:<screen>curl "localhost/api/events/Abcas12322" -H "Content-Type:application/xml" -u admin:district -v</screen></para>
+ this:<screen>curl "localhost/api/events/ID" -H "Content-Type:application/xml" -u admin:district -v</screen></para>
<para>The table below describes the meaning of each element. Most elements should be fairly
self-explanatory.</para>
<para>