Rest API - HTTP Methods
A developer wrote this code snippet to delete a resource:
Why is this code incorrect for an idempotent delete operation?
fetch('https://api.example.com/items/10', { method: 'POST' })
.then(response => console.log('Deleted'));Why is this code incorrect for an idempotent delete operation?
