News for hackers. Stuff that matters.
Re:Problems with RESTful APIs (2015) by joncrocks on Wednesday March 01, 2017 @07:41AM (#13763213)
It can be as long as you have some kind of identity information associated with the request, and provided alongside any requests that are the 'same'.

e.g. Instead of saying "Insert a transaction for £20", you say, "Insert a transaction that entity A calls 1234, for £20".

Stripe use something like this to ensure that as long as you call their API to ask for a payment and use the same key, they won't charge the person twice.

https://stripe.com/docs/api#idempotent_requests

There are no comments on this comment yet.