intermediateREST API Design144 of 469
Can PUT be used instead of DELETE?
Tests whether you know PUT's idempotent full-replace semantics can model a soft delete (replacing a resource with a 'deleted' state) but can't replace DELETE's actual intent to remove the resource -- and that reusing PUT this way confuses API consumers.
Ready to master this question?
Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.
Sign in to generate a response