I have created a local setup of openmrs enterprise v 2.3.2
I have created a new table in openmrs db, and want to retrive all data on basis of uuid by an REST API.
I want to create a new controller and service that will use session factory and retrieve data using sql native query.
How can I achieve this?
Thank you @medhavi for you help.
I have created on module and created an endpoint, but I am not able to call that endpoint from any client and getting resource not found .
Can you tell me what is the entry endpoint for openmrs and what is the entire API flow in openmrs.
@narukumar the Resource doesnt exist means the resource your are trying to retrieve is not available in the rest api or probably the end point url is not right
The end point to fetch data should look look like this
> > GET /ws/rest/v1/{resource name}
> > GET /ws/rest/v1/{resource name}/{uuid}
Could you share the endpoint you are trying to call
Let me clear this, First I have created a new maven {mymodule} module in webservice.rest module.
In {mymodule} I have created this controller class in package
org.openmrs.module.demo.web.controller.
I am not sure that how to design rest api in openmrs, please guide in api development.