Skip to content

Support DELETE method with body #1493

@markb-trustifi

Description

@markb-trustifi

The Delete method supports body in Angular 7, window.fetch and XHR.
I see no reason why it cannot be supported in Restangular out of the box without tricks with interceptors.

Please see the discussion in similar issue in angular repository:
angular/angular#19438 (comment)

Conform RFC 8231 Sec 4.3.5:
https://tools.ietf.org/html/rfc7231#section-4.3.5
"A payload within a DELETE request message has no defined semantics; sending a payload body on a DELETE request might cause some existing implementations to reject the request"

angular/angular#19438 (comment)

Angular is a medium, not the API itself. If the API doesn't forbid it, Angular shouldn't make the decision for the dev. If someone is developing full stack, they have sufficient control over the REST handling to properly handle DELETES with payload.

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