Arden REST API in android application

2 views
Skip to first unread message

Jitendra Singh Bhati

unread,
Jun 29, 2014, 5:56:32 AM6/29/14
to d...@openmrs.org

Hello all,


I have an android PHR application.
How can I use Arden REST API in it? Where can I find code/examples for the same?

If Arden is not accessible via REST API then what's the alternative for the same?

Darius Jazayeri

unread,
Jun 30, 2014, 2:25:23 PM6/30/14
to dev
Hi Jitendra,

There is no (current) REST resource that exposes our Arden services.

You would need to write a module that exposes a REST endpoint, which calls the underlying Arden API code. (The "plumbing" aspect of having a service that listens for GET and calls the underlying API is trivial.)

You also need to figure out how to actually call the Arden APIs. I think this requires an add-on module, but I don't know offhand and our wiki seems to be down.

-Darius


--
OpenMRS Developers: http://go.openmrs.org/dev
Post: d...@openmrs.org | Unsubscribe: dev+uns...@openmrs.org
Manage your OpenMRS subscriptions at https://id.openmrs.org/

Jitendra Singh Bhati

unread,
Jul 1, 2014, 1:48:07 AM7/1/14
to d...@openmrs.org
Thanks Darius for the answer.

Please confirm the following steps which I need to follow to create my own arden rest module;
[2] In the newly created module, I can add my own code of using openmrs arden api
[3] Create omod using maven package
[4] Upload it on administration's modules page
[5] From REST client, give call to Rest URLs


- Jitendra

Darius Jazayeri

unread,
Jul 1, 2014, 10:26:21 AM7/1/14
to dev
Hi Jitendra,

Yes, these are the correct steps.

-Darius

Jitendra Singh Bhati

unread,
Jul 1, 2014, 11:41:04 AM7/1/14
to d...@openmrs.org
Thanks Darius.
Reply all
Reply to author
Forward
0 new messages