my scenario is to create an API and share it in public. the public should access the information without any authentication required.
Like,
I am new and I need guidance.
Thanks in advance.
@frappe.whitelist(allow_guest=True) def your_api(): """ code goes here """
@khushal_t , Thank you. Let me try this and update you.
Note that whitelisted methods are a common cause of security issues. You are responsible for making sure that you sanitize malicious input, check permissions, etc. For example, don’t inject user input into a SQL query, etc.
Thank you guys. I shall try the same and keep the key points and security in consideration.