Hi Jonathan, This one is the correct one GET /openmrs/ws/rest/v1/person?q=john
Can you check if you have that person in the system when you are doing search through the web interface of OpenMRS and present in the database?? I have done an installation with demo data and I get the following $ curl -i -u "admin:Password1" http://localhost:8080/openmrs/ws/rest/v1/person?q=john HTTP/1.1 200 OK Expires: Thu, 01 Jan 1970 00:00:00 GMT Set-Cookie: JSESSIONID=vrre5wt2d7t7;Path=/openmrs Content-Type: application/json;charset=UTF-8 ETag: "07653cde5bdbdf35c0433e5fba28bef81" Content-Length: 210 Server: Jetty(6.1.10) {"results":[{"uuid":"e954a443-e255-11e0-b1ff-5063138e101c","display":"Mr. John D Patient","links":[{"uri":" http://localhost:8080/openmrs/ws/rest/v1/person/e954a443-e255-11e0-b1ff-5063138e101c ","rel":"self"}]}]} What version of the module are you using?? And does it work with the "Administration->REST Web Services->Test" user interface?? --- Regards, Saptarshi PURKAYASTHA My Tech Blog: http://sunnytalkstech.blogspot.com You Live by CHOICE, Not by CHANCE On 31 March 2012 03:07, Jonathan Galingan <[email protected]> wrote: > I'm very sorry, this is my first time to experiment on web services. > > I was trying to get a list of persons that have the given name "John" > > I tried using > > GET /openmrs/ws/rest/v1/person?q=john > > and I get a zero array. > > These give me a "method not allowed:" > > GET /openmrs/ws/rest/v1/person?name=john > GET /openmrs/ws/rest/v1/person/john > GET /openmrs/ws/rest/v1/person/name?=john > > Does anybody know the syntax on how to do this? > > thanks > > -Jonathan > > ------------------------------ > Click here to > unsubscribe<[email protected]?body=SIGNOFF%20openmrs-implement-l>from > OpenMRS Implementers' mailing list _________________________________________ To unsubscribe from OpenMRS Implementers' mailing list, send an e-mail to [email protected] with "SIGNOFF openmrs-implement-l" in the body (not the subject) of your e-mail. [mailto:[email protected]?body=SIGNOFF%20openmrs-implement-l]

