Camel DHIS2 Component
The Camel DHIS2 Component leverages the DHIS2 Java SDK to integrate Apache Camel with DHIS2. The component is distributed with Apache Camel and can be added to a Maven project POM like so:
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-dhis2</artifactId>
<version>x.x.x</version>
<!-- use the same version as your Camel core version -->
</dependency>
Getting started
A basic understanding of Apache Camel and endpoints is assumed. Visit the Apache Camel page to learn the fundamental Camel concepts. All Camel route examples given in this page are expressed in the Java-based DSL.
A DHIS2 endpoint is declared in a route using the following URI format:
dhis2:apiName/methodName?[parameters]
Endpoint parameters
Parameters common across all APIs are listed below:
baseApiUrl
DHIS2 server base API URL to sends requests to.
username
Username of the DHIS2 user to operate as.
password
Password of the DHIS2 username.
personalAccessToken
Personal access token to authenticate with DHIS2. This option is mutually exclusive to username
and password