idempotent in rest api code example
Example: what is idempotent in http methods
An HTTP method is idempotent if an identical request can be made once
or several times in a row with the same effect while leaving the server
in the same state. In other words, an idempotent method should not have
any side-effects (except for keeping statistics).