Explorar el Código

Merge pull request #43122 from th0m4s/master

Fixing /exec/{id}/resize response code in API documentation
Tianon Gravi hace 3 años
padre
commit
ea96e160e4
Se han modificado 1 ficheros con 9 adiciones y 1 borrados
  1. 9 1
      api/swagger.yaml

+ 9 - 1
api/swagger.yaml

@@ -8782,12 +8782,20 @@ paths:
         if `tty` was specified as part of creating and starting the exec instance.
       operationId: "ExecResize"
       responses:
-        201:
+        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"