dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #25433
[Branch ~dhis2-documenters/dhis2/dhis2-docbook-docs] Rev 834: Web api, context info
------------------------------------------------------------
revno: 834
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2-docbook-docs
timestamp: Mon 2013-10-14 10:02:00 +0200
message:
Web api, context info
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-10-11 09:20:24 +0000
+++ src/docbkx/en/dhis2_user_man_web_api.xml 2013-10-14 08:02:00 +0000
@@ -2710,9 +2710,10 @@
<title>View system information</title>
<para>To get information about the current system you can do a GET request to this URL:</para>
<screen>http://yourdomain.com/api/system/info</screen>
- <para>The system info response currently includes the below properties. Note that if the user
- who is requesting this resourec does not have full authority in the system then only the first
- seven properties will be included, as this information is security sensitive.</para>
+ <para>JSON and JSONP response formats are supported. The system info response currently includes
+ the below properties. Note that if the user who is requesting this resourec does not have
+ full authority in the system then only the first seven properties will be included, as this
+ information is security sensitive.</para>
<screen>{
contextPath: "http://yourdomain.com",
userAgent: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.62 Safari/537.36",
@@ -2737,6 +2738,10 @@
memoryInfo: "Mem Total in JVM: 848 Free in JVM: 581 Max Limit: 1333",
cpuCores: 8
}</screen>
+ <para>To get information about the system context (<emphasis role="italic"
+ >contextPath</emphasis> and <emphasis role="italic">userAgent</emphasis>) only you can do
+ a GET request to the below URL. JSON and JSONP response formats are supported:
+ <screen>http://yourdomain.com/api/system/context</screen></para>
</section>
<section>
<title>Check if username and password combination is correct</title>