Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 935 Bytes

index.md

File metadata and controls

42 lines (32 loc) · 935 Bytes

Getting started

Installation

Add conejerock/idempotency-bundle to your composer.json file:

> composer require "conejerock/idempotency-bundle"

Register the bundle

Register bundle into config/bundles.php (Flex did it automatically):

   return [
       //...
       Conejerock\IdempotencyBundle\IdempotencyBundle::class => ['all' => true],
   ];

Configuration

Configure file idempotency.yaml in config/packages adding:

# config/packages/idempotency.yaml
idempotency:
    name: api
    methods: ['POST', 'PUT', 'DELETE'] //by default
    location: 'header-idempotency-key'
    scope: 'headers'

Further documentation

The following documents are available: