Skip to content

Commit 84a39c0

Browse files
committed
Cleanup volume swagger spec.
Signed-off-by: Daniel Nephin <[email protected]>
1 parent d459e83 commit 84a39c0

1 file changed

Lines changed: 15 additions & 19 deletions

File tree

api/swagger.yaml

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5451,20 +5451,17 @@ paths:
54515451
driver name.
54525452
type: "string"
54535453
format: "json"
5454-
tags:
5455-
- "Volume"
5454+
tags: ["Volume"]
54565455

54575456
/volumes/create:
54585457
post:
54595458
summary: "Create a volume"
5460-
operationId: "PostVolumesCreate"
5461-
consumes:
5462-
- "application/json"
5463-
produces:
5464-
- "application/json"
5459+
operationId: "VolumesCreate"
5460+
consumes: ["application/json"]
5461+
produces: ["application/json"]
54655462
responses:
54665463
201:
5467-
description: "No error"
5464+
description: "The volume was created successfully"
54685465
schema:
54695466
$ref: "#/definitions/Volume"
54705467
500:
@@ -5502,14 +5499,13 @@ paths:
55025499
com.example.some-label: "some-value"
55035500
com.example.some-other-label: "some-other-value"
55045501
Driver: "custom"
5505-
tags:
5506-
- "Volume"
5502+
tags: ["Volume"]
5503+
55075504
/volumes/{name}:
55085505
get:
55095506
summary: "Inspect a volume"
5510-
operationId: "GetVolumesInspect"
5511-
produces:
5512-
- "application/json"
5507+
operationId: "VolumesInspect"
5508+
produces: ["application/json"]
55135509
responses:
55145510
200:
55155511
description: "No error"
@@ -5529,15 +5525,15 @@ paths:
55295525
required: true
55305526
description: "Volume name or ID"
55315527
type: "string"
5532-
tags:
5533-
- "Volume"
5528+
tags: ["Volume"]
5529+
55345530
delete:
55355531
summary: "Remove a volume"
55365532
description: "Instruct the driver to remove the volume."
5537-
operationId: "DeleteVolumes"
5533+
operationId: "VolumesDelete"
55385534
responses:
55395535
204:
5540-
description: "No error"
5536+
description: "The volume was removed"
55415537
404:
55425538
description: "No such volume or volume driver"
55435539
schema:
@@ -5556,8 +5552,8 @@ paths:
55565552
required: true
55575553
description: "Volume name or ID"
55585554
type: "string"
5559-
tags:
5560-
- "Volume"
5555+
tags: ["Volume"]
5556+
55615557
/networks:
55625558
get:
55635559
summary: "List networks"

0 commit comments

Comments
 (0)