mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #43344 from ndeloof/issue_43341
cleanup swagger multi-examples
This commit is contained in:
commit
5e330ad4da
1 changed files with 11 additions and 23 deletions
|
@ -3827,6 +3827,7 @@ definitions:
|
|||
|
||||
ServiceSpec:
|
||||
description: "User modifiable configuration for a service."
|
||||
type: object
|
||||
properties:
|
||||
Name:
|
||||
description: "Name of the service."
|
||||
|
@ -5369,6 +5370,7 @@ definitions:
|
|||
|
||||
PeerNode:
|
||||
description: "Represents a peer-node in the swarm"
|
||||
type: "object"
|
||||
properties:
|
||||
NodeID:
|
||||
description: "Unique identifier of for this node in the swarm."
|
||||
|
@ -7319,17 +7321,7 @@ paths:
|
|||
400:
|
||||
description: "Bad parameter"
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: "#/definitions/ErrorResponse"
|
||||
- type: "object"
|
||||
properties:
|
||||
message:
|
||||
description: |
|
||||
The error message. Either "must specify path parameter"
|
||||
(path cannot be empty) or "not a directory" (path was
|
||||
asserted to be a directory but exists as a file).
|
||||
type: "string"
|
||||
x-nullable: false
|
||||
$ref: "#/definitions/ErrorResponse"
|
||||
404:
|
||||
description: "Container or path does not exist"
|
||||
schema:
|
||||
|
@ -7364,17 +7356,7 @@ paths:
|
|||
400:
|
||||
description: "Bad parameter"
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: "#/definitions/ErrorResponse"
|
||||
- type: "object"
|
||||
properties:
|
||||
message:
|
||||
description: |
|
||||
The error message. Either "must specify path parameter"
|
||||
(path cannot be empty) or "not a directory" (path was
|
||||
asserted to be a directory but exists as a file).
|
||||
type: "string"
|
||||
x-nullable: false
|
||||
$ref: "#/definitions/ErrorResponse"
|
||||
404:
|
||||
description: "Container or path does not exist"
|
||||
schema:
|
||||
|
@ -7400,7 +7382,10 @@ paths:
|
|||
tags: ["Container"]
|
||||
put:
|
||||
summary: "Extract an archive of files or folders to a directory in a container"
|
||||
description: "Upload a tar archive to be extracted to a path in the filesystem of container id."
|
||||
description: |
|
||||
Upload a tar archive to be extracted to a path in the filesystem of container id.
|
||||
`path` parameter is asserted to be a directory. If it exists as a file, 400 error
|
||||
will be returned with message "not a directory".
|
||||
operationId: "PutContainerArchive"
|
||||
consumes: ["application/x-tar", "application/octet-stream"]
|
||||
responses:
|
||||
|
@ -7410,6 +7395,9 @@ paths:
|
|||
description: "Bad parameter"
|
||||
schema:
|
||||
$ref: "#/definitions/ErrorResponse"
|
||||
examples:
|
||||
application/json:
|
||||
message: "not a directory"
|
||||
403:
|
||||
description: "Permission denied, the volume or container rootfs is marked as read-only."
|
||||
schema:
|
||||
|
|
Loading…
Add table
Reference in a new issue