I know that this is an old thread, but I was trying to get an external controller to work and I am having problems because it won’t find the file when you try to go to a dev url for a given function in the controller.
example.com/api/hello/hello_world/?dev=1
I get a message of unknown controller. I traced this down to line 35 of the api.php file. I had to edit the strings to determine which one it was.
The problem function seems to be in api.php and is named controller_path(). It seems to always look for controllers in the json_api_dir/controllers folder.
For now I have to put my controller file into the json_api/controlders folder for it to work. Not a big deal, but I like the idea of the external controller. Should the function be passing the directory to the apply filters, or should it be passing a function name like “set_$controller_controller_path”?
Gran