How to write an rest api in erpnext?

Hi, i want to write rest api in erpnext which is exposed to another client server.
When client server call api he will send some data which should be received by erpnext.
This is the case, can anyone please help, i’m new to erpnext.


Hi @saurabh6790 thanks for the quick response, if i get any issues i’ll be back, thank you

Hi @saurabh6790 i have gone through this link Introduction but i was bit confused that where to write my code to get data sent by client server when he calls api and what all the details i have to give client server to call api.

Thanks in advance.

please how did you write your custom api from strach