Skip to content

There's no way to return data with other status codes. #12

Description

@clivecrous

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions