Declares that a route's handler runs once per idempotency key.
Optional
The route's idempotency options (key source, lease, ttl, …)
A standard method decorator
At register(), when the route is a safe method or no CAPABILITIES.IDEMPOTENCY provider is registered
register()
CAPABILITIES.IDEMPOTENCY
@Controller('/payments')class PaymentController { @Post('/') @Idempotent() @Params(Body()) create(input: PaymentInput) { return this.payments.create(input); }} Copy
@Controller('/payments')class PaymentController { @Post('/') @Idempotent() @Params(Body()) create(input: PaymentInput) { return this.payments.create(input); }}
0.9.0
Declares that a route's handler runs once per idempotency key.