3 ms·
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 overri
by mlhpdx 3y 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.
- djbusby 3y agoI do this too. And some resources require two DELETE requests - the first with parameters and the second one (after a minimum time) doesn't.