Hacker News new | ask | show | jobs
by mlhpdx 823 days ago
I tend to make DELETE work without parameters, but allow them in the body (JSON) for non-essential but helpful options. And example is allowing a flag to override delete protections. I doubt this is a “best” practice but I’ve never had a problem with it, or been asked to change it for compatibility.
1 comments

I do this too. And some resources require two DELETE requests - the first with parameters and the second one (after a minimum time) doesn't.