Fix API to use JSON encoding for the body of non-GET requests

See 6c36487 for why.

This Pull Request should make the API behaviour consistent with our own specification. For example: https://github.com/opf/op-api-v3-documentation/blob/master/apiary.apib#L234

Note: This does not currently test `RelationsAPI` (there was never any spec coverage for this resource)