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,618 of 198,451
Downloads: 18,922

Daily

Ranking: 40,721 of 198,429
Downloads: 2

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,944,297,318bundler
291,040,602,616rspec
42838,051,754rack-test
83598,135,432redis
69387,610,390grape
93957,352,518mock_redis

Owners

#GravatarHandle
1iconjcagarcia