3 ms·
Idempotence does not mean immutability, it means that two or more identical operations have the same effect on the resource as a single one. Since GET operation
by kbolino 2y ago
Idempotence does not mean immutability, it means that two or more identical operations have the same effect on the resource as a single one. Since GET operations, by virtue of also being safe, generally have no effect at all, this is almost always trivially true. Just because the resource's content changed for some other reason doesn't mean GET is not idempotent.
- paulddraper 2y agoCorrect. GET, DELETE, HEAD, OPTIONS, PUT are idempotent. POST is not. (Thus existence of Idempotency-Key, etc)