From 1a933e113dc20c22c0d5906cf0b07d3f52098bba Mon Sep 17 00:00:00 2001 From: Thomas LEDOS Date: Wed, 5 Jan 2022 10:10:37 +0100 Subject: [PATCH 1/2] Fixed exec resize success code in API docs Signed-off-by: Thomas LEDOS --- api/swagger.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/swagger.yaml b/api/swagger.yaml index b8b3ea0946..f8797d99e9 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -8782,7 +8782,7 @@ paths: if `tty` was specified as part of creating and starting the exec instance. operationId: "ExecResize" responses: - 201: + 200: description: "No error" 404: description: "No such exec instance" From 834272f978f0194b43770912b464f255e35edc92 Mon Sep 17 00:00:00 2001 From: Thomas LEDOS Date: Wed, 5 Jan 2022 10:11:29 +0100 Subject: [PATCH 2/2] Added error codes for exec resize in API docs Signed-off-by: Thomas LEDOS --- api/swagger.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api/swagger.yaml b/api/swagger.yaml index f8797d99e9..594c126464 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -8784,10 +8784,18 @@ paths: responses: 200: description: "No error" + 400: + description: "bad parameter" + schema: + $ref: "#/definitions/ErrorResponse" 404: description: "No such exec instance" schema: $ref: "#/definitions/ErrorResponse" + 500: + description: "Server error" + schema: + $ref: "#/definitions/ErrorResponse" parameters: - name: "id" in: "path"