Getting 404 Error While Trying to GET data from REST API

I am new with openMRS development. Can you please help me to configure.

I cloned openmrs-core. I cloned REST web service module in the modules folder under (openmrs-core\puppet\modules) openmrs-core. Ran command “mvn clean install” and Everything showed “Success”. and ran open-mrs webapp project on tomcat and works fine.

ButI am unable to access any REST API (GET request :http://localhost:8080/openmrs/ws/rest/v1/patient )

it show errors : WARN - DispatcherServlet.noHandlerFound(1120) |2018-01-24 16:36:34,734| No mapping found for HTTP request with URI [/openmrs/ws/rest/v1/patient] in DispatcherServlet with name ‘openmrs’.

Please help me . Thanks in advance.

@rajuraghuwanshi did you look at and

Dear tendomart,

I followed following Link for configuration and still getting error,Can you please help me so that I can configure it properly

i’d encourage you to first of all drop the whole error log at if you don’t mind , because Error 404 can mean many things as to why the requested resource is not available. Thanks

Dear tendomart,

Please find the pastebin link for error log :

After compiling the rest webservices module, did you paste the generated .omod in this folder? C:\Users\IBM_ADMIN\Application Data\OpenMRS\modules

@dkayiwa @tendomart

Thanks for helping me.I followed your instruction and it worked properly. Now I can POST and GET data properly using postman REST client.

1 Like

@rajuraghuwanshi Glad to hear that !

Dear tendomart,

can you please provide me links or video tutorials to understand the open-mrs data model. Thanks in advance.

@rajuraghuwanshi is this what you want ?

no, i want the open mrs table descriton.

@rajuraghuwanshi Which table ?i do not understand.

person and its sub-tables

There was a very useful session on OpenMRS university last year. You may wanna see this. OpenMRS University 2017-04-12


Dear @owais.hussain,@tendomart

When i open this link :http://localhost:8080/openmrs/index.htm, nothing is displayed on browser,Please help me. Thanks in advance

@rajuraghuwanshi is your server running well?

about the tables,please read the entire documentation , including links.The entire API sits on that database.I don’t know any other currently.

Dear tendomart,

yes server is running fine and please find the server log : Thanks in advance.

Your issue appears to be a possible duplicate of this

Dear @owais.hussain,

Where do i find web.xml content.Thanks in advance

Every web app has a web.xml file. You should be able to find one in …\tomcatxxx\webapps\openmrs\WEB-INF\web.xml

Although by default, OpenMRS’s web.xml doesn’t require any changes and should work just fine.