dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #31612
[Branch ~dhis2-documenters/dhis2/dhis2-docbook-docs] Rev 1140: Minor
------------------------------------------------------------
revno: 1140
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2-docbook-docs
timestamp: Tue 2014-07-15 22:49:16 +0200
message:
Minor
modified:
src/docbkx/en/dhis2_user_man_web_api.xml
src/docbkx/en/resources/css/docbook_bsd.css
--
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:13:22 +0000
+++ src/docbkx/en/dhis2_user_man_web_api.xml 2014-07-15 20:49:16 +0000
@@ -1845,11 +1845,14 @@
<section>
<title>Writing interpretations</title>
<para>We will start by writing an interpretation for the chart with identifier <emphasis role="italic">EbRN2VIbPdV</emphasis>. To write chart interpretations we will interact with the <ulink url="http://apps.dhis2.org/demo/api/interpretations/chart/{chartId}"/> resource. The interpretation will be the request body. Based on this we can put together the following request using cURL:</para>
- <screen>curl -d "This chart shows a significant ANC 1-3 dropout" "https://apps.dhis2.org/demo/api/interpretations/chart/EbRN2VIbPdV" -H "Content-Type:text/plain" -u admin:district -v</screen>
+ <screen>curl -d "This chart shows a significant ANC 1-3 dropout" "https://apps.dhis2.org/demo/api/interpretations/chart/EbRN2VIbPdV" \
+-H "Content-Type:text/plain" -u admin:district -v</screen>
<para>Second we will write a comment on the interpretation we just wrote. By looking at the interpretation response you will see that a <emphasis role="italic">Location</emphasis> header is returned. This header tells us the URL of the newly created interpretation and from that we can read its identifier. This identifier is randomly generated so you will have to replace the one in the command below with your own. To write a comment we can interact with the <ulink url="http://apps.dhis2.org/demo/api/interpretations/{interpretationId}/comment"/> like this:</para>
- <screen>curl -d "An intervention is needed" "https://apps.dhis2.org/demo/api/interpretations/j8sjHLkK8uY/comment" -H "Content-Type:text/plain" -u admin:district -v</screen>
+ <screen>curl -d "An intervention is needed" "https://apps.dhis2.org/demo/api/interpretations/j8sjHLkK8uY/comment"
+-H "Content-Type:text/plain" -u admin:district -v</screen>
<para>You can also write interpretations for report tables in a similar way by interacting with the <ulink url="http://app.dhis2.org/demo/api/interpretations/reportTable/{reportTableId}"/>. For report tables you can also provide an optional <emphasis role="italic">ou</emphasis> query parameter to supply an organisation unit identifier in the case where the report table has an organisation unit report parameter:</para>
- <screen>curl -d "This table reveals poor data quality" "https://apps.dhis2.org/demo/api/interpretations/reportTable/xIWpSo5jjT1?ou=O6uvpzGd5pu" -H "Content-Type:text/plain" -u admin:district -v</screen>
+ <screen>curl -d "This table reveals poor data quality" "https://apps.dhis2.org/demo/api/interpretations/reportTable/xIWpSo5jjT1?ou=O6uvpzGd5pu"
+-H "Content-Type:text/plain" -u admin:district -v</screen>
</section>
<section>
<title>Creating, updating and removing interpretation comments</title>
@@ -3891,7 +3894,7 @@
<screen>api/analytics/events/query/eBAyeGv0exc.xls?startDate=2014-01-01&endDate=2014-10-31&dimension=ou:O6uvpzGd5pu&dimension=oZg33kd9taw&dimension=qrur9Dvnyt5</screen>
<para>You can set the hierarchyMeta query parameter to true in order to include names of all
ancestor organisation units in the meta-section of the response:</para>
- <screen>api/analytics/events/query/eBAyeGv0exc?startDate=2014-01-01&endDate=2014-10-31&dimension=ou:YuQRtpLP10I&dimension=oZg33kd9taw&dimension=qrur9Dvnyt5:EQ:50&hierarchyMeta=true</screen>
+ <screen>api/analytics/events/query/eBAyeGv0exc?startDate=2014-01-01&endDate=2014-10-31&dimension=ou:YuQRtpLP10I&dimension=qrur9Dvnyt5:EQ:50&hierarchyMeta=true</screen>
<para>The default response JSON format will look similar to this:</para>
<screen>{
"headers": [
=== modified file 'src/docbkx/en/resources/css/docbook_bsd.css'
--- src/docbkx/en/resources/css/docbook_bsd.css 2014-07-15 20:13:22 +0000
+++ src/docbkx/en/resources/css/docbook_bsd.css 2014-07-15 20:49:16 +0000
@@ -176,6 +176,7 @@
border: 1px solid #DDD;
border-radius: 3px;
margin: 2.5ex 0;
+ line-height: 1.5em;
}
.CODE {