Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support DELETE method with body #1493

Open
markb-trustifi opened this issue Jul 18, 2019 · 0 comments
Open

Support DELETE method with body #1493

markb-trustifi opened this issue Jul 18, 2019 · 0 comments

Comments

@markb-trustifi
Copy link

markb-trustifi commented Jul 18, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant