First I have to confess, I'm absolutely new to Perch. I just dropped into a Perch based project. Currently I'm trying to find a solid way to fetch Perch data into a frontend app. My favourite solution would be a RESTful API.
I'm thinking of something like this to receive JSON data from Perch:
# get some news articles /perch/api/v1/news/ # get news ordered by date DESC with limit and offset /perch/api/v1/news/?limit=5&offset=15 # get a specific article /perch/api/v1/articles/42/ # get articles by tag /perch/api/v1/articles?tag=foo
In the forums I found an easy way to render JSON from Perch. AJAX and JSON with perch
This might be a good starting point to write a simple API on my own. But I'm sure I'm not the first one looking for a RESTful API and thus I'm pretty sure somebody out there already has a great solution for my problem, right?!
I really, really appreciate any hint!