How to create a new api end point in open-mrs core or in a new module.

Hello There,

I have created a table in openmrs database and wanted to perform the action on that table using api. Is there any default way to create the new methods to save, edit, update the data of the table. Please suggest the approach Thanks.

@atiq You can follow this Adding a Web Service Step by Step Guide for Module Developers - Documentation - OpenMRS Wiki. You can easily setup a new REST endpoint with the help of module. Moreover you can see the Docs of REST Api OpenMRS Docs.

1 Like

Thanks @medhavi for the response I will follow the steps.

1 Like