4 ms·
Strictly speaking, if you do a PUT on it, you are not updating a resource, you are replacing a resource. I know you basically say the same thing, but "update" i
by tremon 10y ago
Strictly speaking, if you do a PUT on it, you are not updating a resource, you are replacing a resource. I know you basically say the same thing, but "update" is too ambiguous in this case. That is also why PUT is idempotent: it replaces the complete state of the referred resource.
Similarly, POST is not idempotent because it modifies (part of) the resource's state while leaving it otherwise untouched.