1
0
mirror of https://github.com/twirl/The-API-Book.git synced 2025-03-11 14:04:47 +02:00

Merge pull request #3 from lynxknight/patch-1

fix random typo
This commit is contained in:
Sergey Konstantinov 2020-12-11 20:14:52 +03:00 committed by GitHub
commit 4807f3a80b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -251,7 +251,7 @@ PUT /v1/orders/drafts/{draft_id}
Creating order drafts is a non-binding operation since it doesn't entail any consequences, so it's fine to create drafts without idempotency token.
Confirming drafts is a naturally idempotent operation, with `draft_if` being its idempotency key.
Confirming drafts is a naturally idempotent operation, with `draft_id` being its idempotency key.
Also worth mentioning that adding idempotency tokens to naturally idempotent handlers isn't meaningless either, since it allows to distinguish two situations:
* a client didn't get the response because of some network issues, and is now repeating the request;