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 :

@frappe.whitelist()
def test():
    params=frappe.form_dict
    #code goes here 
    frappe.response["http_status_code"]=200
    frappe.response["test"]="hello"

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