Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAccess body in remove() method #1994
Comments
|
Couldn't find any concrete documentation on this. RFC spec doesn't seem very verbose on the topic and express supports data passed in the DELETE method. So I think it would make sense to allow as much in feathers. For now I'm doing this:
Then I just access |
|
By default, You can use things like |
|
Hi @bwgjoseph My question was not whether or not body is required but, if it would be well received to officially support it. As of now, the remove request does not behave similarly to a POST or PUT which allows users to pass data in the body of the request. Thanks for the reply. Here's a couple threads on the topic in general: |
|
Hi @ericuldall, Thanks for the clarification. For certain use-case, I do certainly agree on supporting |
Is it possible to access data in a remove() method?
I notice the method accepts
(id, params)is it possible to use data?I have a use case where a DELETE also sends extra meta data about the request for metrics.
Example: