Thread tagged as: Api, Add-on-development

Perch as a JSON API

I've been working on a JSON API using perch content custom. (To be used with an Angular JS component) I was wondering if there was any way in Perch to specify the content-type and the request method in the HTTP request header?

Or is that something better left to frameworks such as Laravel etc?

Thanks! Pierre

Pierre Lemoine

Pierre Lemoine 0 points

  • 7 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

You would just set the headers using PHP


Hi Pierre! Would you mind elaborating a little on how you are doing this? I also would like to use Perch as a JSON api. have no idea how to start.

Thank you