dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #27105
[Branch ~dhis2-documenters/dhis2/dhis2-docbook-docs] Rev 903: document meta-data import strategies, and dryRun
------------------------------------------------------------
revno: 903
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2-docbook-docs
timestamp: Fri 2013-12-27 13:50:56 +0100
message:
document meta-data import strategies, and dryRun
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-12-27 12:35:31 +0000
+++ src/docbkx/en/dhis2_user_man_web_api.xml 2013-12-27 12:50:56 +0000
@@ -268,6 +268,14 @@
<entry>Indicates whether to get all resources or no resources by default.</entry>
</row>
<row>
+ <entry>dryRun</entry>
+ <entry>boolean</entry>
+ <entry>false</entry>
+ <entry>false | true</entry>
+ <entry>If you set this to true, the actual import will not happen. Instead the system will generate a
+ summary of what would have been done.</entry>
+ </row>
+ <row>
<entry>{resources}</entry>
<entry>boolean</entry>
<entry>false</entry>
@@ -286,16 +294,64 @@
<row>
<entry>preheatCache</entry>
<entry>boolean</entry>
- <entry>true</entry>
+ <entry>false</entry>
<entry>true | false</entry>
<entry>Turn cache-map preheating on/off. This is on by default, turning this off will make initial load time for importer much
shorter (but will make the import itself slower). This is mostly used for cases where you have a small XML file you want to
import, and don't want to wait for cache-map preheating.</entry>
</row>
+ <row>
+ <entry>strategy</entry>
+ <entry>enum</entry>
+ <entry>false</entry>
+ <entry>CREATE_AND_UPDATE | CREATE | UPDATE | DELETE</entry>
+ <entry>Import strategy to use, see below for more information.</entry>
+ </row>
</tbody>
</tgroup>
</table>
</para>
+
+ <section>
+ <title>Available strategies for import</title>
+ <para>
+ <table>
+ <title>Available Strategies</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>
+ <emphasis role="italic">Type</emphasis>
+ </entry>
+ <entry>
+ <emphasis role="italic">Description</emphasis>
+ </entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>CREATE_AND_UPDATE</entry>
+ <entry>Allows creation and updating of objects.</entry>
+ </row>
+ <row>
+ <entry>CREATE</entry>
+ <entry>Allows creation of objects.</entry>
+ </row>
+ <row>
+ <entry>UPDATE</entry>
+ <entry>Allows update of objects.</entry>
+ </row>
+ <row>
+ <entry>DELETE</entry>
+ <entry>Allows deletes of objects.</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </para>
+ </section>
+ <section>
+ <title>Examples</title>
<para>
<emphasis role="bold">Example: Get a filtered set of meta-data that was updated since August 1
2012</emphasis>
@@ -323,6 +379,7 @@
return as soon as the process is started. The response status code to be expected is 204 No
Content.</para>
</section>
+ </section>
<section>
<title>Sending data values</title>
<para>A common use-case for system integration is the need to send a set of data values from a