-----Forwarded Message----- From: Manor Lev-tov <[email protected]> Sent: Nov 16, 2011 1:52 PM To: Roger Friedman Subject: REST API questions
Hey Roger, I'm having some problems with the REST API and I was wondering if you could help. I have two issues. 1. The documentation specifies that it should be possible to get all non-retired elements of the specific objects, but this doesn't appear to be working. For instance, according to the documentation, if I do a GET on http://raxaemr.jelastic.servint.net/openmrs/ws/rest/v1/person/b7038c8a-f94d-11e0-a6cf-ea24f7692684/names, I should get all of the names for that person, but instead I get an error message of "Request method 'get' not supported" 2. I am trying to figure out how to add person attributes and I don't see anywhere in the documentation what the correct JSON is for that. For instance, if I want to add a "Birthplace" attribute with a value of "Test BirthPlace" to person b7038c8a-f94d-11e0-a6cf- ea24f7692684, what is the JSON for that? I've combed through all of the documentation that I could find on the REST API and these things are not addressed. Am I missing something or the documentation just not complete? Thanks, Manor

