How to develop custom module and rest api

Thank you very much. i’ll try it

Thank you very much for the help. it works. how can i update record??

https://wiki.openmrs.org/display/docs/Adding+a+Web+Service+Step+by+Step+Guide+for+Core+Developers