Create an api for public

@frappe.whitelist(allow_guest=True)
def your_api():
   """ code goes here """