浏览代码

docs: fixing /exec/{id}/resize response code in API documentation

This takes the changes from 1a933e113dc20c22c0d5906cf0b07d3f52098bba and
834272f978f0194b43770912b464f255e35edc92, and applies them to older API
versions in the docs directory (which are used for the actual documentation).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 3 年之前
父节点
当前提交
2145f3ba2c

+ 9 - 1
docs/api/v1.25.yaml

@@ -5679,12 +5679,20 @@ paths:
       description: "Resize the TTY session used by an exec instance. This endpoint only works if `tty` was specified as part of creating and starting the exec instance."
       description: "Resize the TTY session used by an exec instance. This endpoint only works if `tty` was specified as part of creating and starting the exec instance."
       operationId: "ExecResize"
       operationId: "ExecResize"
       responses:
       responses:
-        201:
+        200:
           description: "No error"
           description: "No error"
+        400:
+          description: "bad parameter"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
         404:
         404:
           description: "No such exec instance"
           description: "No such exec instance"
           schema:
           schema:
             $ref: "#/definitions/ErrorResponse"
             $ref: "#/definitions/ErrorResponse"
+        500:
+          description: "Server error"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
       parameters:
       parameters:
         - name: "id"
         - name: "id"
           in: "path"
           in: "path"

+ 9 - 1
docs/api/v1.26.yaml

@@ -5688,12 +5688,20 @@ paths:
       description: "Resize the TTY session used by an exec instance. This endpoint only works if `tty` was specified as part of creating and starting the exec instance."
       description: "Resize the TTY session used by an exec instance. This endpoint only works if `tty` was specified as part of creating and starting the exec instance."
       operationId: "ExecResize"
       operationId: "ExecResize"
       responses:
       responses:
-        201:
+        200:
           description: "No error"
           description: "No error"
+        400:
+          description: "bad parameter"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
         404:
         404:
           description: "No such exec instance"
           description: "No such exec instance"
           schema:
           schema:
             $ref: "#/definitions/ErrorResponse"
             $ref: "#/definitions/ErrorResponse"
+        500:
+          description: "Server error"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
       parameters:
       parameters:
         - name: "id"
         - name: "id"
           in: "path"
           in: "path"

+ 9 - 1
docs/api/v1.27.yaml

@@ -5763,12 +5763,20 @@ paths:
       description: "Resize the TTY session used by an exec instance. This endpoint only works if `tty` was specified as part of creating and starting the exec instance."
       description: "Resize the TTY session used by an exec instance. This endpoint only works if `tty` was specified as part of creating and starting the exec instance."
       operationId: "ExecResize"
       operationId: "ExecResize"
       responses:
       responses:
-        201:
+        200:
           description: "No error"
           description: "No error"
+        400:
+          description: "bad parameter"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
         404:
         404:
           description: "No such exec instance"
           description: "No such exec instance"
           schema:
           schema:
             $ref: "#/definitions/ErrorResponse"
             $ref: "#/definitions/ErrorResponse"
+        500:
+          description: "Server error"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
       parameters:
       parameters:
         - name: "id"
         - name: "id"
           in: "path"
           in: "path"

+ 9 - 1
docs/api/v1.28.yaml

@@ -5879,12 +5879,20 @@ paths:
       description: "Resize the TTY session used by an exec instance. This endpoint only works if `tty` was specified as part of creating and starting the exec instance."
       description: "Resize the TTY session used by an exec instance. This endpoint only works if `tty` was specified as part of creating and starting the exec instance."
       operationId: "ExecResize"
       operationId: "ExecResize"
       responses:
       responses:
-        201:
+        200:
           description: "No error"
           description: "No error"
+        400:
+          description: "bad parameter"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
         404:
         404:
           description: "No such exec instance"
           description: "No such exec instance"
           schema:
           schema:
             $ref: "#/definitions/ErrorResponse"
             $ref: "#/definitions/ErrorResponse"
+        500:
+          description: "Server error"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
       parameters:
       parameters:
         - name: "id"
         - name: "id"
           in: "path"
           in: "path"

+ 9 - 1
docs/api/v1.29.yaml

@@ -5913,12 +5913,20 @@ paths:
       description: "Resize the TTY session used by an exec instance. This endpoint only works if `tty` was specified as part of creating and starting the exec instance."
       description: "Resize the TTY session used by an exec instance. This endpoint only works if `tty` was specified as part of creating and starting the exec instance."
       operationId: "ExecResize"
       operationId: "ExecResize"
       responses:
       responses:
-        201:
+        200:
           description: "No error"
           description: "No error"
+        400:
+          description: "bad parameter"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
         404:
         404:
           description: "No such exec instance"
           description: "No such exec instance"
           schema:
           schema:
             $ref: "#/definitions/ErrorResponse"
             $ref: "#/definitions/ErrorResponse"
+        500:
+          description: "Server error"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
       parameters:
       parameters:
         - name: "id"
         - name: "id"
           in: "path"
           in: "path"

+ 9 - 1
docs/api/v1.30.yaml

@@ -6149,12 +6149,20 @@ paths:
       description: "Resize the TTY session used by an exec instance. This endpoint only works if `tty` was specified as part of creating and starting the exec instance."
       description: "Resize the TTY session used by an exec instance. This endpoint only works if `tty` was specified as part of creating and starting the exec instance."
       operationId: "ExecResize"
       operationId: "ExecResize"
       responses:
       responses:
-        201:
+        200:
           description: "No error"
           description: "No error"
+        400:
+          description: "bad parameter"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
         404:
         404:
           description: "No such exec instance"
           description: "No such exec instance"
           schema:
           schema:
             $ref: "#/definitions/ErrorResponse"
             $ref: "#/definitions/ErrorResponse"
+        500:
+          description: "Server error"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
       parameters:
       parameters:
         - name: "id"
         - name: "id"
           in: "path"
           in: "path"

+ 9 - 1
docs/api/v1.31.yaml

@@ -6242,12 +6242,20 @@ paths:
       description: "Resize the TTY session used by an exec instance. This endpoint only works if `tty` was specified as part of creating and starting the exec instance."
       description: "Resize the TTY session used by an exec instance. This endpoint only works if `tty` was specified as part of creating and starting the exec instance."
       operationId: "ExecResize"
       operationId: "ExecResize"
       responses:
       responses:
-        201:
+        200:
           description: "No error"
           description: "No error"
+        400:
+          description: "bad parameter"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
         404:
         404:
           description: "No such exec instance"
           description: "No such exec instance"
           schema:
           schema:
             $ref: "#/definitions/ErrorResponse"
             $ref: "#/definitions/ErrorResponse"
+        500:
+          description: "Server error"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
       parameters:
       parameters:
         - name: "id"
         - name: "id"
           in: "path"
           in: "path"

+ 9 - 1
docs/api/v1.32.yaml

@@ -7279,12 +7279,20 @@ paths:
       description: "Resize the TTY session used by an exec instance. This endpoint only works if `tty` was specified as part of creating and starting the exec instance."
       description: "Resize the TTY session used by an exec instance. This endpoint only works if `tty` was specified as part of creating and starting the exec instance."
       operationId: "ExecResize"
       operationId: "ExecResize"
       responses:
       responses:
-        201:
+        200:
           description: "No error"
           description: "No error"
+        400:
+          description: "bad parameter"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
         404:
         404:
           description: "No such exec instance"
           description: "No such exec instance"
           schema:
           schema:
             $ref: "#/definitions/ErrorResponse"
             $ref: "#/definitions/ErrorResponse"
+        500:
+          description: "Server error"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
       parameters:
       parameters:
         - name: "id"
         - name: "id"
           in: "path"
           in: "path"

+ 9 - 1
docs/api/v1.33.yaml

@@ -7288,12 +7288,20 @@ paths:
       description: "Resize the TTY session used by an exec instance. This endpoint only works if `tty` was specified as part of creating and starting the exec instance."
       description: "Resize the TTY session used by an exec instance. This endpoint only works if `tty` was specified as part of creating and starting the exec instance."
       operationId: "ExecResize"
       operationId: "ExecResize"
       responses:
       responses:
-        201:
+        200:
           description: "No error"
           description: "No error"
+        400:
+          description: "bad parameter"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
         404:
         404:
           description: "No such exec instance"
           description: "No such exec instance"
           schema:
           schema:
             $ref: "#/definitions/ErrorResponse"
             $ref: "#/definitions/ErrorResponse"
+        500:
+          description: "Server error"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
       parameters:
       parameters:
         - name: "id"
         - name: "id"
           in: "path"
           in: "path"

+ 9 - 1
docs/api/v1.34.yaml

@@ -7334,12 +7334,20 @@ paths:
       description: "Resize the TTY session used by an exec instance. This endpoint only works if `tty` was specified as part of creating and starting the exec instance."
       description: "Resize the TTY session used by an exec instance. This endpoint only works if `tty` was specified as part of creating and starting the exec instance."
       operationId: "ExecResize"
       operationId: "ExecResize"
       responses:
       responses:
-        201:
+        200:
           description: "No error"
           description: "No error"
+        400:
+          description: "bad parameter"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
         404:
         404:
           description: "No such exec instance"
           description: "No such exec instance"
           schema:
           schema:
             $ref: "#/definitions/ErrorResponse"
             $ref: "#/definitions/ErrorResponse"
+        500:
+          description: "Server error"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
       parameters:
       parameters:
         - name: "id"
         - name: "id"
           in: "path"
           in: "path"

+ 9 - 1
docs/api/v1.35.yaml

@@ -7346,12 +7346,20 @@ paths:
       description: "Resize the TTY session used by an exec instance. This endpoint only works if `tty` was specified as part of creating and starting the exec instance."
       description: "Resize the TTY session used by an exec instance. This endpoint only works if `tty` was specified as part of creating and starting the exec instance."
       operationId: "ExecResize"
       operationId: "ExecResize"
       responses:
       responses:
-        201:
+        200:
           description: "No error"
           description: "No error"
+        400:
+          description: "bad parameter"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
         404:
         404:
           description: "No such exec instance"
           description: "No such exec instance"
           schema:
           schema:
             $ref: "#/definitions/ErrorResponse"
             $ref: "#/definitions/ErrorResponse"
+        500:
+          description: "Server error"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
       parameters:
       parameters:
         - name: "id"
         - name: "id"
           in: "path"
           in: "path"

+ 9 - 1
docs/api/v1.36.yaml

@@ -7380,12 +7380,20 @@ paths:
       description: "Resize the TTY session used by an exec instance. This endpoint only works if `tty` was specified as part of creating and starting the exec instance."
       description: "Resize the TTY session used by an exec instance. This endpoint only works if `tty` was specified as part of creating and starting the exec instance."
       operationId: "ExecResize"
       operationId: "ExecResize"
       responses:
       responses:
-        201:
+        200:
           description: "No error"
           description: "No error"
+        400:
+          description: "bad parameter"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
         404:
         404:
           description: "No such exec instance"
           description: "No such exec instance"
           schema:
           schema:
             $ref: "#/definitions/ErrorResponse"
             $ref: "#/definitions/ErrorResponse"
+        500:
+          description: "Server error"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
       parameters:
       parameters:
         - name: "id"
         - name: "id"
           in: "path"
           in: "path"

+ 9 - 1
docs/api/v1.37.yaml

@@ -7423,12 +7423,20 @@ paths:
       description: "Resize the TTY session used by an exec instance. This endpoint only works if `tty` was specified as part of creating and starting the exec instance."
       description: "Resize the TTY session used by an exec instance. This endpoint only works if `tty` was specified as part of creating and starting the exec instance."
       operationId: "ExecResize"
       operationId: "ExecResize"
       responses:
       responses:
-        201:
+        200:
           description: "No error"
           description: "No error"
+        400:
+          description: "bad parameter"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
         404:
         404:
           description: "No such exec instance"
           description: "No such exec instance"
           schema:
           schema:
             $ref: "#/definitions/ErrorResponse"
             $ref: "#/definitions/ErrorResponse"
+        500:
+          description: "Server error"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
       parameters:
       parameters:
         - name: "id"
         - name: "id"
           in: "path"
           in: "path"

+ 9 - 1
docs/api/v1.38.yaml

@@ -7484,12 +7484,20 @@ paths:
       description: "Resize the TTY session used by an exec instance. This endpoint only works if `tty` was specified as part of creating and starting the exec instance."
       description: "Resize the TTY session used by an exec instance. This endpoint only works if `tty` was specified as part of creating and starting the exec instance."
       operationId: "ExecResize"
       operationId: "ExecResize"
       responses:
       responses:
-        201:
+        200:
           description: "No error"
           description: "No error"
+        400:
+          description: "bad parameter"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
         404:
         404:
           description: "No such exec instance"
           description: "No such exec instance"
           schema:
           schema:
             $ref: "#/definitions/ErrorResponse"
             $ref: "#/definitions/ErrorResponse"
+        500:
+          description: "Server error"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
       parameters:
       parameters:
         - name: "id"
         - name: "id"
           in: "path"
           in: "path"

+ 9 - 1
docs/api/v1.39.yaml

@@ -8249,12 +8249,20 @@ paths:
         if `tty` was specified as part of creating and starting the exec instance.
         if `tty` was specified as part of creating and starting the exec instance.
       operationId: "ExecResize"
       operationId: "ExecResize"
       responses:
       responses:
-        201:
+        200:
           description: "No error"
           description: "No error"
+        400:
+          description: "bad parameter"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
         404:
         404:
           description: "No such exec instance"
           description: "No such exec instance"
           schema:
           schema:
             $ref: "#/definitions/ErrorResponse"
             $ref: "#/definitions/ErrorResponse"
+        500:
+          description: "Server error"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
       parameters:
       parameters:
         - name: "id"
         - name: "id"
           in: "path"
           in: "path"

+ 9 - 1
docs/api/v1.40.yaml

@@ -8437,12 +8437,20 @@ paths:
         if `tty` was specified as part of creating and starting the exec instance.
         if `tty` was specified as part of creating and starting the exec instance.
       operationId: "ExecResize"
       operationId: "ExecResize"
       responses:
       responses:
-        201:
+        200:
           description: "No error"
           description: "No error"
+        400:
+          description: "bad parameter"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
         404:
         404:
           description: "No such exec instance"
           description: "No such exec instance"
           schema:
           schema:
             $ref: "#/definitions/ErrorResponse"
             $ref: "#/definitions/ErrorResponse"
+        500:
+          description: "Server error"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
       parameters:
       parameters:
         - name: "id"
         - name: "id"
           in: "path"
           in: "path"

+ 9 - 1
docs/api/v1.41.yaml

@@ -8607,12 +8607,20 @@ paths:
         if `tty` was specified as part of creating and starting the exec instance.
         if `tty` was specified as part of creating and starting the exec instance.
       operationId: "ExecResize"
       operationId: "ExecResize"
       responses:
       responses:
-        201:
+        200:
           description: "No error"
           description: "No error"
+        400:
+          description: "bad parameter"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
         404:
         404:
           description: "No such exec instance"
           description: "No such exec instance"
           schema:
           schema:
             $ref: "#/definitions/ErrorResponse"
             $ref: "#/definitions/ErrorResponse"
+        500:
+          description: "Server error"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
       parameters:
       parameters:
         - name: "id"
         - name: "id"
           in: "path"
           in: "path"