We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

DevTools Scaffold JSON

Hey, I've had a look but couldn't find any previous discussion covering this so apologise if it has been covered already:

Is there a way to customise the DevTools' Scaffolding command to create JSON responses instead of views? I'm looking for a way to quickly scaffold a REST API application in Phalcon and have managed to achieve everything through the DevTools, but now I need to remove the views and replace them with JSON responses. Wonder if it was possible to pass a custom config file into DevTools that would allow me to achieve this desired outcome?

Thanks

Change template views in folder \vendor\phalcon\devtools\templates\