`delete` doesn't support payload nor query params
See original GitHub issueAxios doesn’t seem to support adding payloads and/or query params to delete
. Note, I’m referring to using the config object instead of the convenience delete
method.
In particular, the following does not work, in chrome devtools the request is poorly formed:
axios(R.merge({
method: 'delete',
url: `/entities/someId`,
data: payload,
params: {
force: true,
}
}, axios.config))
Any reason why this should be so?
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Is an entity body allowed for an HTTP DELETE request?
A payload within a DELETE request message has no defined semantics; sending a payload body on a DELETE request might cause some existing ......
Read more >HTTP Delete Rest service with request body as payload
It is common practice to qualify HTTP DELETE requests by including query parameters in the URL. While it is not explicitly forbidden to...
Read more >REST - Should you use a body for your HTTP DELETE ...
A payload within a DELETE request message has no defined semantics; sending a payload body on a DELETE request might cause some existing ......
Read more >Remove queryparam after assign message to payload
Hello Apigeeks Payload {"bookid":"{request.queryparam.bookid}"} true Above, I set json payload from the queryparam and removed.
Read more >Does REST API Supports Request Body for DELETE Method
We don't support the Request body with the DELETE method. It does allow you to pass HTTP Query Parameters. The world works with...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You should not merge your config with axios.config when making a request. Could you please try to use the following?
You are welcome!