Service API from C5 site?
Permalink
Has anyone done a public API from a C5 site? Was the API built using single pages? I'm wondering if I should modify the theme template so that I can change the content type of some pages and to get rid of the header footer etc, or if there is another way.
Nice links thanks. Tons of useful stuff.
We've done a couple of sites with an API that allows mobile applications to fetch data from the site.
And yes, we did this with a single page that maps the routes to it to specific "API controllers", just to make it more sensible and maintainable (if it's a bigger API). If it's just something very simple, one single page controller is probably sufficient for your needs.
I think most other API implementations with c5.6, it's done through a single page.
In 5.7 you no longer need to do it through a single page since you can use the Symfony router to map the API routes to specific controllers / actions.
And yes, we did this with a single page that maps the routes to it to specific "API controllers", just to make it more sensible and maintainable (if it's a bigger API). If it's just something very simple, one single page controller is probably sufficient for your needs.
I think most other API implementations with c5.6, it's done through a single page.
In 5.7 you no longer need to do it through a single page since you can use the Symfony router to map the API routes to specific controllers / actions.
Thanks for the reply. I'm definitely going to checkout Symfony.
http://www.concrete5.org/developers/open-source/...