I am trying to learn more about the REST module. There are two problems to start with:
1. According to this link, I can access /openmrs/ws/rest/v1/patient to get a list of all patient. However, the test page results an error. But the /openmrs/ws/rest/v1/order has no error and displayed all the orders.
2. How can I see the full error log on the test page. As show in my screen cap, it only shows first couple words and "....". I can use curl to get the full error message but it all in one line. It's hard to read. For the first question, I post the curl error message in the following.
{"error":{"message":"The Resource Does not Support the Requested Operation","code":"org.openmrs.module.webservices.rest.web.resource.impl.DelegatingCrudResource:218","detail":"org.openmrs.module.webservices.rest.web.response.ResourceDoesNotSupportOperationException\n\tat org.openmrs.module.webservices.rest.web.resource.impl.DelegatingCrudResource.doGetAll(DelegatingCrudResource.java:218)\n\tat org.openmrs.module.webservices.rest.web.resource.impl.DelegatingCrudResource.getAll(DelegatingCrudResource.java:205)\n\tat org.openmrs.module.webservices.rest.web.v1_0.controller.MainResourceController.get(MainResourceController.java:176)\n\tat sun.reflect.GeneratedMethodAccessor963.invoke(Unknown Source)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:622)\n\tat
Thanks for your help.
--
OpenMRS Developers: http://om.rs/dev
Post: d...@openmrs.org | Unsubscribe: dev+uns...@openmrs.org
Manage your OpenMRS subscriptions at http://om.rs/id
Register today for our Maputo 2015 Implementers Meeting: http://om.rs/moz15