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.

 
JohntheFish replied on at Permalink Best Answer Reply
JohntheFish
codifyio replied on at Permalink Reply
Nice links thanks. Tons of useful stuff.
Mainio replied on at Permalink Reply
Mainio
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.
codifyio replied on at Permalink Reply
Thanks for the reply. I'm definitely going to checkout Symfony.