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.
tendomart
(tendo kiiza Martyn)
January 24, 2018, 1:37pm
2
Dear tendomart,
I followed following Link for configuration and still getting error,Can you please help me so that I can configure it properly
tendomart
(tendo kiiza Martyn)
January 24, 2018, 2:39pm
4
i’d encourage you to first of all drop the whole error log at pastebin.com 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 :https://pastebin.com/embed_js/Ty6T4wKi
dkayiwa
(Daniel Kayiwa)
January 24, 2018, 3:12pm
6
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
tendomart
(tendo kiiza Martyn)
January 25, 2018, 6:24am
8
@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.
tendomart
(tendo kiiza Martyn)
January 27, 2018, 9:10pm
10
no, i want the open mrs table descriton.
tendomart
(tendo kiiza Martyn)
January 28, 2018, 4:23pm
12
@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
2 Likes
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
tendomart
(tendo kiiza Martyn)
January 29, 2018, 1:54pm
16
@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 :https://pastebin.com/xrnRckWX
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.