Usage of Data Store

Hi.

I’m trying to use the dataStore resource with my app although I’m facing some issues.

As far as I’ve understood the desired namespace should be declared in the manifest file. Within the activities.dhis. I have declared my namespace as:

“namespace” : “coursetaker”

I’ve also tried it like this: "namespace: “/coursetaker”

Doing a Get request to the api/dataStore returns : “[]”

Doing a get request tot the api/dataStore/coursetaker returns:

" {“httpStatus”:“Not Found”,“httpStatusCode”:404,“status”:“ERROR”,“message”:“The namespace ‘coursetaker’ was not found.”}"

And different attempts at PUT requests return:

“Request method ‘PUT’ not supported”.

I’m running DHIS 2.21. On tomcat 7.0.55

When installing the app I get no manifest syntax error.

Hi Farrukh,

you need to POST something to the store before you can get anything out.

http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s62.html

regards,

Lars

···

On Wed, Jan 13, 2016 at 5:48 PM, Farrukh Wahab Manzoor farrukhm@ifi.uio.no wrote:

Hi.

I’m trying to use the dataStore resource with my app although I’m facing some issues.

As far as I’ve understood the desired namespace should be declared in the manifest file. Within the activities.dhis. I have declared my namespace as:

“namespace” : “coursetaker”

I’ve also tried it like this: "namespace: “/coursetaker”

Doing a Get request to the api/dataStore returns : “[]”

Doing a get request tot the api/dataStore/coursetaker returns:

" {“httpStatus”:“Not Found”,“httpStatusCode”:404,“status”:“ERROR”,“message”:“The namespace ‘coursetaker’ was not found.”}"

And different attempts at PUT requests return:

“Request method ‘PUT’ not supported”.

I’m running DHIS 2.21. On tomcat 7.0.55

When installing the app I get no manifest syntax error.


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

http://www.dhis2.org