I need to access a variable that could be in a template controller or page model through the API.
How can I proceed?
I would also need to access the crop() method on images.
I need to access a variable that could be in a template controller or page model through the API.
How can I proceed?
I would also need to access the crop() method on images.
I have the same question. Is there a way to use page controllers in the API?
After thinking a bit more about it, it’s probably not possible, since the API is not thought to be used for frontend purposes.
Check out this plugin: https://github.com/robinscholz/better-rest
It might also give you some ideas how to extend the API to provide additional methods.