grape-idempotency

https://rubygems.org/gems/grape-idempotency
https://github.com/jcagarcia/grape-idempotency
Idempotency-Key header support for Grape REST APIs, based on the IETF Idempotency-Key HTTP header draft. Wrap a POST or PATCH endpoint in an idempotent block and clients can safely retry requests after timeouts or network errors without creating duplicate payments, orders or records. The first response (status, headers and body) is stored in Redis and replayed for retries with the same key. Concurrent duplicate requests get a 409 Conflict, and reusing a key with a different payload gets a 422 Unprocessable Entity. Works with Grape 1.x to 4.x and Ruby 2.6+.

Total

Ranking: 60,603 of 197,744
Downloads: 18,816

Daily

Ranking: 26,624 of 197,724
Downloads: 7

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,863,547,421bundler
291,032,112,907rspec
42827,356,323rack-test
83591,995,389redis
69686,902,580grape
94156,489,355mock_redis

Owners

#GravatarHandle
1iconjcagarcia