I’m trying to build a custom app to work with ERPNext that has a custom method that can be called via REST.
I don’t understand what Frappe means when they say the “dotted path” to the function.
For example, suppose I have my custom app set up as: frappe-bench/apps/my_app/custom_api.py and the python function is: def my_api(): inside custom_api.py
frappe-bench/apps/my_app is reserved for configuration files. The actual source code must reside in frappe-bench/apps/my_app/my_app. Just move your file to this location, it should work.