Simon Fletcher Avatar

1 Notes

I was wondering how the JSON style interstate API is generated?

Asked by callumcarolan

Interstate’s framework has an API handler built in which lets us simply pass native PHP arrays which the framework handles and outputs a styled response in the format the HTTP Accept header defines (e.g. json, xml, phps, etc).

Replies

Likes

  1. wakecodesleep posted this

 

Reblogs