From a1d8869271141df7301b654704eee3ff82f703c3 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Sat, 25 Mar 2023 12:45:10 -0400 Subject: [PATCH] oapi: readstates --- assets/openapi.json | Bin 414091 -> 414487 bytes src/api/routes/read-states/ack-bulk.ts | 10 +++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/assets/openapi.json b/assets/openapi.json index d2953a042d21350c2ea3f072581dd3964b9c22b0..275113ef845544d52bb92bf949593e1b9ba1ef9d 100644 GIT binary patch delta 42 xcmeBPEIECdWJ3#M3sVd87M4!F?eq0m-!o3%aF5x!U7w!?h*`Jm^RvY`0RT?t4i5kT delta 36 rcmbQfOtO2iWJ3#M3sVd87M4!F=?iW#FKgc|zyidq+jk4F#W(=~1z8P@ diff --git a/src/api/routes/read-states/ack-bulk.ts b/src/api/routes/read-states/ack-bulk.ts index bca2001c..3ee25d1a 100644 --- a/src/api/routes/read-states/ack-bulk.ts +++ b/src/api/routes/read-states/ack-bulk.ts @@ -23,7 +23,15 @@ const router = Router(); router.post( "/", - route({ requestBody: "AckBulkSchema" }), + route({ + requestBody: "AckBulkSchema", + responses: { + 204: {}, + 400: { + body: "APIErrorResponse", + }, + }, + }), async (req: Request, res: Response) => { const body = req.body as AckBulkSchema;