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,674 of 199,265
Downloads: 19,085

Daily

Ranking: 59,833 of 199,228
Downloads: 8

Depended by

RankDownloadsName

Depends on

RankDownloadsName
14,021,603,999bundler
291,048,996,124rspec
42848,545,140rack-test
83604,233,945redis
68988,281,213grape
93758,108,022mock_redis

Owners

#GravatarHandle
1iconjcagarcia