From 9e73e9852587bd5b8733c155a343f72721a88bd3 Mon Sep 17 00:00:00 2001 From: "Aaron K. Clark" Date: Tue, 19 May 2026 10:09:55 -0500 Subject: [PATCH] docs(openapi): declare Idempotency-Replay on POST /v1/productentry 201 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Part of #245 — single-create POST OpenAPI Idempotency-Replay sweep. Adds Idempotency-Replay response-header declaration to the 201 response on POST /v1/productentry. Same pattern as the prior 10 entities (customer / timeentry / worker / billingtype / inventoryitem / company / job / invoice / customerpayment / invoicejob). No behavior change — pure spec metadata. 760 tests still pass. Co-Authored-By: Claude Opus 4.7 (1M context) --- app/config/openapi.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/config/openapi.js b/app/config/openapi.js index d2c8f44..eec4e13 100644 --- a/app/config/openapi.js +++ b/app/config/openapi.js @@ -1062,7 +1062,14 @@ const spec = { security: [{ authKey: [] }], parameters: [idempotencyKeyHeader], requestBody: { required: true, content: { 'application/json': { schema: { $ref: '#/components/schemas/ProductEntry' } } } }, - responses: { 201: { description: 'Created' }, 400: { description: 'Bad request' }, 403: { description: 'Auth failure' } }, + responses: { + 201: { + description: 'Created', + headers: idempotencyReplayResponseHeader, + }, + 400: { description: 'Bad request' }, + 403: { description: 'Auth failure' }, + }, }, }, '/v1/productentry/{id}': {