Api integration in erpnext

Can anyone tell me how to start creating api using erpnext. Actually i have gone through integration documentation i want to know where to place this api code in erpnext directory any documentation or tutorial ??

Have you gone through below link already?

https://frappe.io/docs/user/en/guides/integration/rest_api