From 6a6339ed40158ea5b99d72b3e42c03899a420a68 Mon Sep 17 00:00:00 2001 From: "Aaron K. Clark" Date: Tue, 19 May 2026 10:45:37 -0500 Subject: [PATCH] docs(openapi): declare Idempotency-Replay on POST /v1/purchaseorderline 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/purchaseorderline. Same pattern as the prior 14 entities. Also tidies the previously single-line POST entry to match the multi-line shape used everywhere else so future field-level edits diff cleanly. No behavior change — pure spec metadata. 760 tests still pass. Co-Authored-By: Claude Opus 4.7 (1M context) --- app/config/openapi.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/app/config/openapi.js b/app/config/openapi.js index b89d6db..b747a84 100644 --- a/app/config/openapi.js +++ b/app/config/openapi.js @@ -1186,7 +1186,20 @@ const spec = { }, }, '/v1/purchaseorderline': { - post: { summary: 'Create a PO line', security: [{ authKey: [] }], parameters: [idempotencyKeyHeader], requestBody: { required: true, content: { 'application/json': { schema: { $ref: '#/components/schemas/PurchaseOrderLine' } } } }, responses: { 201: { description: 'Created' }, 400: { description: 'Bad request' }, 403: { description: 'Auth failure' } } }, + post: { + summary: 'Create a PO line', + security: [{ authKey: [] }], + parameters: [idempotencyKeyHeader], + requestBody: { required: true, content: { 'application/json': { schema: { $ref: '#/components/schemas/PurchaseOrderLine' } } } }, + responses: { + 201: { + description: 'Created', + headers: idempotencyReplayResponseHeader, + }, + 400: { description: 'Bad request' }, + 403: { description: 'Auth failure' }, + }, + }, }, '/v1/purchaseorderline/{id}': { get: { summary: 'Get one PO line', security: [{ authKey: [] }], parameters: [{ name: 'id', in: 'path', required: true, schema: { type: 'integer' } }], responses: { 200: { description: 'Found' }, 404: { description: 'Not found' }, 403: { description: 'Auth failure' } } },