Hi all,
so I am new to OpenMRS, and I've got some serious problems with the REST Web Services and I have no clue, why the following does not work for me. I'm testing the REST calls directly in OpenMRS.
1) I get an error, if I try to GET all persons/patients with the following command: openmrs/ws/rest/v1/person
Normally, this should get me a whole list of persons, but everything I get is the following: error! msg: error errorThrown: undefined req: [object XMLHttpRequest]
But openmrs/ws/rest/v1/person/uuid gives me the person.
2) Is there a way to get a more precise error message??
3) the greatest problem is, that I want to create concepts via the
REST service. As stated in the description, I need the names (name,
locale), the datatype and the conceptclass.
here an example of my call:
Type:POST
URI: /openmrs/ws/rest/v1/concept
Body Content: {"datatype": "N/A", "conceptClass": "Misc", "names":
[{"name":"TEST", "locale":"en"}]}
representation: create
But I only get the same error as stated above. Is there anything wrong with my call or why else do I get only errors? Or do I have to do something before trying to create concepts via REST? If I do create a concept via the dictionary, I can later change things via REST.
thank you for your answers.
getting all patients is a prohibited operation
--
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/
To unsubscribe from this group and stop receiving emails from it, send an email to dev+uns...@openmrs.org.

--
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/