ahlatimer/lazy_resource — pull request #12 by andyhite (2014-03-26 03:46:49+00:00)
Title: Nonstandard posts w/ body

This is rather unfortunate, but it's the only way around the problem we're having tonight. Since POST and PUT requests need to be JSON encoded and in the request body (not URL parameters), we need to make sure of two things: the URL that's generated in url_for should NOT contain the query parameters (default params are fine though), and the relation's values must be attached to the LazyResource::Request's body option as a JSON encoded string instead of the param option as a query encoded string.

All other requests should pass through just as they normally do, but this is necessary in order to make nonstandard, POSTed requests to collection paths with JSON encoded body data.