Application Name: webeservices.rest
Version Number: 2.29.0
Question:
Hello, I followed this page, and have set up penmrs sdk platform 2.3.0, and webservices.rest 2.29.0. I was able to run the server successfully at port 8080. But when I tried to use Postman to send request “localhost:8080/openmrs/module/webservices/rest/apiDocs.html” , it returned 404.
I’ve set authorization as user: admin, password: Admin123. Please help. Thanks.
@rainbow from your logs i see consistently see java.lang.NoClassDefFoundError: org/openmrs/module/web/extension/AdministrationSectionExt , this means your classpath doesn’t include the required classes that need to be dynamically loaded during compilation or it can also mean to indicate that you’re missing a transitive dependency of a .jar file that you’ve compiled against and you’re trying to use.
Thanks for your help. It seems related to the REST package. Will using a different version of webservices.rest solve this problem?
I apologize for needing more instructions. As I am not a developer.
Usually this error code means that you were able to reach the server however the resource was not found which can be from so many reason
However in your case I think the issue is with your url which does not point to any resource.
The question I would as is what were you expecting to receive using this url since it doesn’t point to any resource.
Checkout this page for sample rest calls
thus your calls will be something like http://ipaddress/openmrs/ws/rest/v1/obs
So to better understand the constructs of these look at this but from the browser to understand how to format the urls