âš¡ OpenAPI / Swagger¶
Documents the
Idempotency-Keyheader on idempotent operations.
CoreSystem.Idempotency.OpenApi integrates with Swashbuckle to surface the Idempotency-Key header in the generated OpenAPI document.
📦 Installation¶
dotnet add package CoreSystem.Idempotency.OpenApi
🚀 Quick Start¶
builder.Services.AddSwaggerGen(options =>
{
options.OperationFilter<IdempotencyHeaderOperationFilter>();
});
🧩 Component¶
IdempotencyHeaderOperationFilter—IOperationFilterthat adds the header when the HTTP method is inAllowedMethods.