dj-webmachine
dj-webmachine copied to clipboard
There's no way to return data with other status codes.
There's currently no way to return data along with a status 201 "Created" ( or any other status codes ) beyond manually writing encoders for each provided type and manually monkey patching the response content and headers (like content_type etc).
... which makes this framework useful for some API's but not for RESTful ones. Being able to return the created ID, for example, along with a 201 - Created is essential.
I've created a small patch which addresses this issue: https://github.com/Go2Africa/dj-webmachine/commit/dc8b42686c48c914e52797b82711099da71d3eee