I am trying to use below api, in postman with oauth 2.0 authentication,
https://{{ngrok}}/api/resource/DocType/Survey%20Form
I got following error.
{
"exception": "KeyError: 'run_method'",
"exc_type": "KeyError",
"exc": "[\"Traceback (most recent call last):\\n File \\\"apps/frappe/frappe/app.py\\\", line 114, in application\\n response = frappe.api.handle(request)\\n File \\\"apps/frappe/frappe/api/__init__.py\\\", line 49, in handle\\n data = endpoint(**arguments)\\n File \\\"apps/frappe/frappe/api/v1.py\\\", line 82, in execute_doc_method\\n method = method or frappe.form_dict.pop(\\\"run_method\\\")\\nKeyError: 'run_method'\\n\"]"
}
But when I access frappe.whitelist I can get it.
above API is working with cookies login. but I want via oauth