Merge pull request #42596 from thaJeztah/sync_swagger_fix

API: fix 404 status description on container create
This commit is contained in:
Sebastiaan van Stijn 2021-07-07 11:49:10 +02:00 committed by GitHub
commit c858e496f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 41 additions and 41 deletions

View file

@ -5583,12 +5583,12 @@ paths:
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
404: 404:
description: "no such container" description: "no such image"
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
examples: examples:
application/json: application/json:
message: "No such container: c2ada9df5af8" message: "No such image: c2ada9df5af8"
409: 409:
description: "conflict" description: "conflict"
schema: schema:

View file

@ -317,7 +317,7 @@ Create a container
- **201** no error - **201** no error
- **400** bad parameter - **400** bad parameter
- **404** no such container - **404** no such image
- **406** impossible to attach (container not running) - **406** impossible to attach (container not running)
- **409** conflict - **409** conflict
- **500** server error - **500** server error

View file

@ -327,7 +327,7 @@ Create a container
- **201** no error - **201** no error
- **400** bad parameter - **400** bad parameter
- **404** no such container - **404** no such image
- **406** impossible to attach (container not running) - **406** impossible to attach (container not running)
- **409** conflict - **409** conflict
- **500** server error - **500** server error

View file

@ -331,7 +331,7 @@ Create a container
- **201** no error - **201** no error
- **400** bad parameter - **400** bad parameter
- **404** no such container - **404** no such image
- **406** impossible to attach (container not running) - **406** impossible to attach (container not running)
- **409** conflict - **409** conflict
- **500** server error - **500** server error

View file

@ -352,7 +352,7 @@ Create a container
- **201** no error - **201** no error
- **400** bad parameter - **400** bad parameter
- **404** no such container - **404** no such image
- **406** impossible to attach (container not running) - **406** impossible to attach (container not running)
- **409** conflict - **409** conflict
- **500** server error - **500** server error

View file

@ -467,7 +467,7 @@ Create a container
- **201** no error - **201** no error
- **400** bad parameter - **400** bad parameter
- **404** no such container - **404** no such image
- **406** impossible to attach (container not running) - **406** impossible to attach (container not running)
- **409** conflict - **409** conflict
- **500** server error - **500** server error

View file

@ -493,7 +493,7 @@ Create a container
- **201** no error - **201** no error
- **400** bad parameter - **400** bad parameter
- **404** no such container - **404** no such image
- **406** impossible to attach (container not running) - **406** impossible to attach (container not running)
- **409** conflict - **409** conflict
- **500** server error - **500** server error

View file

@ -535,7 +535,7 @@ Create a container
- **201** no error - **201** no error
- **400** bad parameter - **400** bad parameter
- **404** no such container - **404** no such image
- **406** impossible to attach (container not running) - **406** impossible to attach (container not running)
- **409** conflict - **409** conflict
- **500** server error - **500** server error

View file

@ -2786,12 +2786,12 @@ paths:
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
404: 404:
description: "no such container" description: "no such image"
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
examples: examples:
application/json: application/json:
message: "No such container: c2ada9df5af8" message: "No such image: c2ada9df5af8"
406: 406:
description: "impossible to attach" description: "impossible to attach"
schema: schema:

View file

@ -2791,12 +2791,12 @@ paths:
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
404: 404:
description: "no such container" description: "no such image"
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
examples: examples:
application/json: application/json:
message: "No such container: c2ada9df5af8" message: "No such image: c2ada9df5af8"
406: 406:
description: "impossible to attach" description: "impossible to attach"
schema: schema:

View file

@ -2851,12 +2851,12 @@ paths:
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
404: 404:
description: "no such container" description: "no such image"
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
examples: examples:
application/json: application/json:
message: "No such container: c2ada9df5af8" message: "No such image: c2ada9df5af8"
406: 406:
description: "impossible to attach" description: "impossible to attach"
schema: schema:

View file

@ -2941,12 +2941,12 @@ paths:
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
404: 404:
description: "no such container" description: "no such image"
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
examples: examples:
application/json: application/json:
message: "No such container: c2ada9df5af8" message: "No such image: c2ada9df5af8"
406: 406:
description: "impossible to attach" description: "impossible to attach"
schema: schema:

View file

@ -2975,12 +2975,12 @@ paths:
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
404: 404:
description: "no such container" description: "no such image"
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
examples: examples:
application/json: application/json:
message: "No such container: c2ada9df5af8" message: "No such image: c2ada9df5af8"
406: 406:
description: "impossible to attach" description: "impossible to attach"
schema: schema:

View file

@ -3181,12 +3181,12 @@ paths:
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
404: 404:
description: "no such container" description: "no such image"
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
examples: examples:
application/json: application/json:
message: "No such container: c2ada9df5af8" message: "No such image: c2ada9df5af8"
406: 406:
description: "impossible to attach" description: "impossible to attach"
schema: schema:

View file

@ -3251,12 +3251,12 @@ paths:
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
404: 404:
description: "no such container" description: "no such image"
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
examples: examples:
application/json: application/json:
message: "No such container: c2ada9df5af8" message: "No such image: c2ada9df5af8"
406: 406:
description: "impossible to attach" description: "impossible to attach"
schema: schema:

View file

@ -4494,12 +4494,12 @@ paths:
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
404: 404:
description: "no such container" description: "no such image"
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
examples: examples:
application/json: application/json:
message: "No such container: c2ada9df5af8" message: "No such image: c2ada9df5af8"
409: 409:
description: "conflict" description: "conflict"
schema: schema:

View file

@ -4499,12 +4499,12 @@ paths:
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
404: 404:
description: "no such container" description: "no such image"
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
examples: examples:
application/json: application/json:
message: "No such container: c2ada9df5af8" message: "No such image: c2ada9df5af8"
409: 409:
description: "conflict" description: "conflict"
schema: schema:

View file

@ -4528,12 +4528,12 @@ paths:
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
404: 404:
description: "no such container" description: "no such image"
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
examples: examples:
application/json: application/json:
message: "No such container: c2ada9df5af8" message: "No such image: c2ada9df5af8"
409: 409:
description: "conflict" description: "conflict"
schema: schema:

View file

@ -4510,12 +4510,12 @@ paths:
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
404: 404:
description: "no such container" description: "no such image"
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
examples: examples:
application/json: application/json:
message: "No such container: c2ada9df5af8" message: "No such image: c2ada9df5af8"
409: 409:
description: "conflict" description: "conflict"
schema: schema:

View file

@ -4525,12 +4525,12 @@ paths:
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
404: 404:
description: "no such container" description: "no such image"
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
examples: examples:
application/json: application/json:
message: "No such container: c2ada9df5af8" message: "No such image: c2ada9df5af8"
409: 409:
description: "conflict" description: "conflict"
schema: schema:

View file

@ -4545,12 +4545,12 @@ paths:
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
404: 404:
description: "no such container" description: "no such image"
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
examples: examples:
application/json: application/json:
message: "No such container: c2ada9df5af8" message: "No such image: c2ada9df5af8"
409: 409:
description: "conflict" description: "conflict"
schema: schema:

View file

@ -4599,12 +4599,12 @@ paths:
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
404: 404:
description: "no such container" description: "no such image"
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
examples: examples:
application/json: application/json:
message: "No such container: c2ada9df5af8" message: "No such image: c2ada9df5af8"
409: 409:
description: "conflict" description: "conflict"
schema: schema:

View file

@ -5294,12 +5294,12 @@ paths:
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
404: 404:
description: "no such container" description: "no such image"
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
examples: examples:
application/json: application/json:
message: "No such container: c2ada9df5af8" message: "No such image: c2ada9df5af8"
409: 409:
description: "conflict" description: "conflict"
schema: schema:

View file

@ -5425,12 +5425,12 @@ paths:
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
404: 404:
description: "no such container" description: "no such image"
schema: schema:
$ref: "#/definitions/ErrorResponse" $ref: "#/definitions/ErrorResponse"
examples: examples:
application/json: application/json:
message: "No such container: c2ada9df5af8" message: "No such image: c2ada9df5af8"
409: 409:
description: "conflict" description: "conflict"
schema: schema: