My api requires application/vnd.api+json
to be the sole mimetype for all interaction.
If I POST
to an endpoint with the header Content-Type: application/vnd.api+json
, I examine the request
object and request.json
is None
.
On the other hand, POSTing the same data with the standard Content-Type: application/json
populates the request.json
attr with the data I need.
What are my options to populate request.json
with the data I need when using a custom mimetype? Subclassing request? Setting some parameter on the application instance?