From 1c0902b4d6dd53965d6c914aa11d5ca9daef45f8 Mon Sep 17 00:00:00 2001 From: Piotr Icikowski Date: Fri, 27 Jan 2023 15:23:19 +0100 Subject: [PATCH] docs(openapi): update responses for `POST /routes` --- api/spec_adminapi.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/api/spec_adminapi.yaml b/api/spec_adminapi.yaml index f2e4e80..3e208e8 100644 --- a/api/spec_adminapi.yaml +++ b/api/spec_adminapi.yaml @@ -362,6 +362,23 @@ paths: responses: '202': description: Routes configuration accepted + '400': + description: Unable to apply configuration due to missing payloads + content: + application/json: + schema: + $ref: "#/components/schemas/ErrorResponse" + example: + status: 400 + message: missing payloads + details: "cannot find payload for default method of '/' route: payload with given ID does not exist: u4-i74LliXKedbn40vWj6" + text/yaml: + schema: + $ref: "#/components/schemas/ErrorResponse" + example: + status: 400 + message: missing payloads + details: "cannot find payload for default method of '/' route: payload with given ID does not exist: u4-i74LliXKedbn40vWj6" '422': description: Unable to parse request body content: