WP Manifestindependent plugin directory
manifest / integrations / wp-rest-api-idempotence

WP REST API - Idempotence

Allow WP REST API clients to specify an idempotency key for API requests.

by Timothy B Jacobs · github.com/iron-bound-designs/wp-rest-api-idempotence · website

3stars
1forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/iron-bound-designs/wp-rest-api-idempotence/archive/refs/heads/master.zip

From the readme

WP API Idempotence Allow WordPress REST API clients to specify an idempotency key for API requests. This allows for API clients to safely retry requests in case of network errors without risk of the request being processed twice. Description When a network error is encountered, API clients should be able to retry a request without a risk of their request being processed twice. WP API Idempotence adds support for clients to include an idempotency key that uniquely identifies that request. If the server detects that a request with the same key has already been processed or is currently being processed, the response for the initial request will be returned. For Example: Configuration Idempotency key can either be passed in the request header or the request body. The idempotency key name can be customized. Change the HTTP methods the idempotency key is supported for. Defaults to POST, PUT, PATCH. A sample request interface is included to demonstrate the selected configuration. Developers The plugin includes two actions to modify the dependency injection container (DIC) and insert custom services. The wpapiidempotenceinitializecontainerbuilder action allows you to modify

Read the full README on GitHub →