Merge pull request #42602 from thaJeztah/20.10_backport_swagger_404

[20.10 backport] API: fix 404 status description on container create
This commit is contained in:
Brian Goff 2021-07-15 11:34:29 -07:00 committed by GitHub
commit 883cc3682d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 43 additions and 43 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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