Is there some way to use Apiary to respond appropriately to JSONP requests?
request looks like:
http://myserver.apiary-mock.com/api/v1/startup/dashboard?callback=jQuery20008137053514365107_1400036479208&user_id=1&_=1400036479210
and I need the request to take that jQuery string and wrap it around the response (normal response body shown as {...} below):
jQuery20008137053514365107_1400036479208({...})
So, if the normal request was:
http://myserver.apiary-mock.com/api/v1/startup/dashboard
And the normal response was:
{ "yes": true }
Then, adding a callback like:
http://myserver.apiary-mock.com/api/v1/startup/dashboard?callback=bob
Would make the response look like:
bob({ "yes": true })
Apiary does not support this currently, but might be working on it.