Hi iam trying to write an api

I am trying to integrate mobile application with erpnext for apply leave and etc can any one show me the api structure which we used in erp next which will help me to write other api in erpnext

@amal_31845 just add any file anywhere for example a file called api.py next to hooks.py , then write any function whitelisted :

def test():
    #code goes here 

then using postman or browser acces the api from url/app_name.api.test