re: Poll: Do You Know What "Idempotent" Means? VIEW POST

re: Another example of idempotency is the REST architecture in which everything but POST should be idempotent. Repeated GETs should yield the same resu...

Repeated GETs would not yield the same result though, unless the server is a douchebag and disallows edits like Twitter does :)


The REST architecture separates resource representation (the response, the state) from the operation. So, repeated GETs will result in the same operation on the server (so it's idempotent), while the actual state might have changed in time.

Instead repeated POSTs will result in new resources being created, so it's not idempotent

It's slightly different from what you intend

By that definition, I guess I have used the concept, even without knowing the word.

code of conduct - report abuse