mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Cleanup volume swagger spec.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
d459e83b1c
commit
84a39c0830
1 changed files with 15 additions and 19 deletions
|
@ -5451,20 +5451,17 @@ paths:
|
||||||
driver name.
|
driver name.
|
||||||
type: "string"
|
type: "string"
|
||||||
format: "json"
|
format: "json"
|
||||||
tags:
|
tags: ["Volume"]
|
||||||
- "Volume"
|
|
||||||
|
|
||||||
/volumes/create:
|
/volumes/create:
|
||||||
post:
|
post:
|
||||||
summary: "Create a volume"
|
summary: "Create a volume"
|
||||||
operationId: "PostVolumesCreate"
|
operationId: "VolumesCreate"
|
||||||
consumes:
|
consumes: ["application/json"]
|
||||||
- "application/json"
|
produces: ["application/json"]
|
||||||
produces:
|
|
||||||
- "application/json"
|
|
||||||
responses:
|
responses:
|
||||||
201:
|
201:
|
||||||
description: "No error"
|
description: "The volume was created successfully"
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/definitions/Volume"
|
$ref: "#/definitions/Volume"
|
||||||
500:
|
500:
|
||||||
|
@ -5502,14 +5499,13 @@ paths:
|
||||||
com.example.some-label: "some-value"
|
com.example.some-label: "some-value"
|
||||||
com.example.some-other-label: "some-other-value"
|
com.example.some-other-label: "some-other-value"
|
||||||
Driver: "custom"
|
Driver: "custom"
|
||||||
tags:
|
tags: ["Volume"]
|
||||||
- "Volume"
|
|
||||||
/volumes/{name}:
|
/volumes/{name}:
|
||||||
get:
|
get:
|
||||||
summary: "Inspect a volume"
|
summary: "Inspect a volume"
|
||||||
operationId: "GetVolumesInspect"
|
operationId: "VolumesInspect"
|
||||||
produces:
|
produces: ["application/json"]
|
||||||
- "application/json"
|
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: "No error"
|
description: "No error"
|
||||||
|
@ -5529,15 +5525,15 @@ paths:
|
||||||
required: true
|
required: true
|
||||||
description: "Volume name or ID"
|
description: "Volume name or ID"
|
||||||
type: "string"
|
type: "string"
|
||||||
tags:
|
tags: ["Volume"]
|
||||||
- "Volume"
|
|
||||||
delete:
|
delete:
|
||||||
summary: "Remove a volume"
|
summary: "Remove a volume"
|
||||||
description: "Instruct the driver to remove the volume."
|
description: "Instruct the driver to remove the volume."
|
||||||
operationId: "DeleteVolumes"
|
operationId: "VolumesDelete"
|
||||||
responses:
|
responses:
|
||||||
204:
|
204:
|
||||||
description: "No error"
|
description: "The volume was removed"
|
||||||
404:
|
404:
|
||||||
description: "No such volume or volume driver"
|
description: "No such volume or volume driver"
|
||||||
schema:
|
schema:
|
||||||
|
@ -5556,8 +5552,8 @@ paths:
|
||||||
required: true
|
required: true
|
||||||
description: "Volume name or ID"
|
description: "Volume name or ID"
|
||||||
type: "string"
|
type: "string"
|
||||||
tags:
|
tags: ["Volume"]
|
||||||
- "Volume"
|
|
||||||
/networks:
|
/networks:
|
||||||
get:
|
get:
|
||||||
summary: "List networks"
|
summary: "List networks"
|
||||||
|
|
Loading…
Reference in a new issue