WP REST API Idempotent Requests
Allow REST API clients to safely retry requests in case of network errors without risk of the request being processed twice.
Considere uma alternativa
WP REST API Idempotent Requests shows warning signs in 2026 — compare the alternatives below before installing. Was last updated 10 years ago, and scores 21/100 on our health check.
- Base de usuários pequenas (<10 instalações ativas)
- Muito poucos comentários até agora
- Nenhuma atualização em 9 anos
- Testado apenas até WordPress 4.8 (mais recente é 7.1)
Como ele se acumula?
Lado a lado em instalações, atualizações, avaliações e suporteDownloads diários
Os picos de download geralmente seguem uma nova versão — cada site que atualiza automaticamente é um download.
Rankings
Where WP REST API Idempotent Requ… stands todayWordPress.org Classificações de pesquisa
Posição ao vivo na pesquisa de plugins, top 100| Palavra chave | Posição |
|---|---|
| rest-api | >100 |
About WP REST API Idempotent Requests
Do Readme oficial · v1.0Descrição
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:
{
"title": "My Important Post",
"content": "This will only go out once!",
"status": "draft",
"idempotency_key": "1ced64e9-9537-4b7b-9919-444d9e15e201"
}
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.
Desenvolvedores
The plugin includes two actions to modify the dependency injection container (DIC) and insert custom services.
The wp_api_idempotence_initialize_container_builder action allows you to modify the Dependency Injection builder itself and
the wp_api_idempotence_initialize_container action allows you to override dependencies. For example:
add_action( 'wp_api_idempotence_initialize_container', function( $container ) {
$container->set( '_dataStore', DI\object( 'YourName\CustomDataStore' ) );
} );
Under the hood, the plugin is made up of a DataStore, RequestHasher, ResponseSerializer and RequestPoller.
The DataStore is primarily responsible for retrieving or storing an idempotent request. By default, requests
are stored in a custom database table. This could be substituted for a custom driver by implementing the DataStore
interface. For example a Redis server.
The RequestHasher produces a unique hash for a WP_REST_Request object. This hash is based off of the contents of
the request, not for the object via spl_object_hash or similar. This can also be substituted by implementing the
RequestHasher interface.
The ResponseSerializer converts a WP_REST_Response or WP_Error object back and forth from a string representation.
The default JSON serializer supports filtering the serialization process using the wp_api_idempotence_serialized_response_data
and wp_api_idempotence_attach_serialized_response_data filters. See src/ResponseSerializer/Filtered.php.
The entire serializer can be substituted by implementing the ResponseSerializer interface.
Finally, the RequestPoller class polls the data store for a response if it is determined that an idempotent request
is currently being processed when another request with the same key arrives. By default, the data store is polled
every seconds a maximum of 15 times to try and retrieve a response object. If no response is found, an error with code
rest_duplicate_idempotency_key will be returned. This can be adjusted by overwriting the poll.sleepSeconds and
poll.maxQueries in the DIC. The RequestPoller can also be entirely subsituted by implementing the RequestPoller
interface.
Contributing
This plugin is hosted on GitHub. Issues and pull requests are welcomed.
Para desenvolvedores
Este é o seu plugin? Mostre os números.
Adicione um crachá ao vivo ao seu site, Documentos ou Readme do GitHub. Ele é atualizado por conta própria - nenhuma conta necessária.
Best WP REST API Idempotent Reques… alternatives
All rest-api plugins →FAQ
WP REST API Idempotent Requests: quick answers
Respostas diretas, extraídas de dados ao vivo WordPress.org.
Fonte: WordPress.org
Is WP REST API Idempotent Requests free?
Yes. WP REST API Idempotent Requests is free to download and use from the official WordPress.org plugin directory.
Is WP REST API Idempotent Requests safe to use in 2026?
WP REST API Idempotent Requests shows warning signs in 2026 — compare the alternatives below before installing. Was last updated 10 years ago, and scores 21/100 on our health check.
How many websites use WP REST API Idempotent Requests?
WP REST API Idempotent Requests is active on <10 WordPress websites and has been downloaded 2,294 times since it launched in April 2017. It was downloaded 32 times in the last 30 days.
Does WP REST API Idempotent Requests work with WordPress 7.1?
WP REST API Idempotent Requests is officially tested up to WordPress 4.8.35, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
When was WP REST API Idempotent Requests last updated?
The latest version, 1.0, was released on April 9, 2017 (10 years ago).
Who makes WP REST API Idempotent Requests?
WP REST API Idempotent Requests is developed and maintained by Timothy Jacobs.
What are the best alternatives to WP REST API Idempotent Requests?
The most popular alternatives to WP REST API Idempotent Requests are WooCommerce Legacy REST API (300K+ installs), Disable REST API (80K+ installs) and Make Connector (70K+ installs).
Alimentado por PageForge
Um modelo e uma planilha. Uma página real para cada pesquisa.
PageForge Transforma cada linha de um CSV em uma página WordPress com seu próprio título, URL, SEO campos e esquema, construído no layout que você já desenhou. Gratuito em WordPress.org.
- CSV e XLSX, mais Google Sheets em Profissional e Empresarial
- Seu próprio título, URL, SEO campos e esquema para cada página
- Funciona com o editor de blocos, Elementor, Divi e Avada
- Gratuito em WordPress.org, sem cartão de crédito
