Re:Show HN: Deck of Cards – A playing card API
by hartror on Monday May 11, 2015 @07:00AM
(#9523772)
DELETE is idempotent to quote a Stack Overflow answer on the subject:
> Idempotence refers to the state of the system after the request has completed
> ...
> The key bit there is the side-effects of N > 0 identical requests is the same as for a single request.
http://stackoverflow.com/questions/4088350/is-rest-delete-re...
Re:Show HN: Deck of Cards – A playing card API
by jalfresi on Monday May 11, 2015 @08:38AM
(#9524191)
The example I gave is idempotent. Calling it n >0 times would result in the same side effects.
DELETE /api/<deck-id>/top?count=2
------
200 Ok
8♣
10♥