Skip to content

Allow response body on delete contract #24

@rshishehbor

Description

@rshishehbor

Hoping we can change the delete() contract to allow for sending status entities back on bulk DELETE operations. Per RFC:

RFC2616 9.7 DELETE: "A successful response SHOULD be 200 (OK) if the response includes an entity describing the status, 202 (Accepted) if the action has not yet been enacted, or 204 (No Content) if the action has been enacted but the response does not include an entity.”

I’m wondering, could we have the restful plugin support both codes according to the standard? Meaning, could we support void delete(…) and def delete(…). Right now, I’m struggling to support a bulk DELETE operation without sending back a content body describing the status of each individual delete operation in the bulk request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions