Skip to content

Commit 52a4737

Browse files
committed
Cleanup network swagger spec.
Signed-off-by: Daniel Nephin <[email protected]>
1 parent 5c2498f commit 52a4737

1 file changed

Lines changed: 21 additions & 22 deletions

File tree

api/swagger.yaml

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5560,7 +5560,7 @@ paths:
55605560
/networks:
55615561
get:
55625562
summary: "List networks"
5563-
operationId: "GetNetworksList"
5563+
operationId: "NetworksList"
55645564
produces:
55655565
- "application/json"
55665566
responses:
@@ -5634,12 +5634,12 @@ paths:
56345634
- `name=<network-name>` Matches all or part of a network name.
56355635
- `type=["custom"|"builtin"]` Filters networks by type. The `custom` keyword returns all user-defined networks.
56365636
type: "string"
5637-
tags:
5638-
- "Network"
5637+
tags: ["Network"]
5638+
56395639
/networks/{id}:
56405640
get:
56415641
summary: "Inspect a network"
5642-
operationId: "GetNetworksInspect"
5642+
operationId: "NetworksInspect"
56435643
produces:
56445644
- "application/json"
56455645
responses:
@@ -5657,8 +5657,8 @@ paths:
56575657
description: "Network ID or name"
56585658
required: true
56595659
type: "string"
5660-
tags:
5661-
- "Network"
5660+
tags: ["Network"]
5661+
56625662
delete:
56635663
summary: "Remove a network"
56645664
operationId: "DeleteNetworks"
@@ -5679,12 +5679,12 @@ paths:
56795679
description: "Network ID or name"
56805680
required: true
56815681
type: "string"
5682-
tags:
5683-
- "Network"
5682+
tags: ["Network"]
5683+
56845684
/networks/create:
56855685
post:
56865686
summary: "Create a network"
5687-
operationId: "PostNetworksCreate"
5687+
operationId: "NetworksCreate"
56885688
consumes:
56895689
- "application/json"
56905690
produces:
@@ -5774,12 +5774,12 @@ paths:
57745774
Labels:
57755775
com.example.some-label: "some-value"
57765776
com.example.some-other-label: "some-other-value"
5777-
tags:
5778-
- "Network"
5777+
tags: ["Network"]
5778+
57795779
/networks/{id}/connect:
57805780
post:
57815781
summary: "Connect a container to a network"
5782-
operationId: "PostNetworksConnect"
5782+
operationId: "NetworksConnect"
57835783
consumes:
57845784
- "application/octet-stream"
57855785
responses:
@@ -5820,12 +5820,12 @@ paths:
58205820
IPAMConfig:
58215821
IPv4Address: "172.24.56.89"
58225822
IPv6Address: "2001:db8::5689"
5823-
tags:
5824-
- "Network"
5823+
tags: ["Network"]
5824+
58255825
/networks/{id}/disconnect:
58265826
post:
58275827
summary: "Disconnect a container from a network"
5828-
operationId: "PostNetworksDisconnect"
5828+
operationId: "NetworksDisconnect"
58295829
consumes:
58305830
- "application/json"
58315831
responses:
@@ -5861,15 +5861,14 @@ paths:
58615861
Force:
58625862
type: "boolean"
58635863
description: "Force the container to disconnect from the network."
5864-
tags:
5865-
- "Network"
5864+
tags: ["Network"]
5865+
58665866
/plugins:
58675867
get:
58685868
summary: "List plugins"
5869-
operationId: "GetPluginsList"
5869+
operationId: "PluginsList"
58705870
description: "Returns information about installed plugins."
5871-
produces:
5872-
- "application/json"
5871+
produces: ["application/json"]
58735872
responses:
58745873
200:
58755874
description: "No error"
@@ -5956,8 +5955,8 @@ paths:
59565955
description: "Server error"
59575956
schema:
59585957
$ref: "#/definitions/ErrorResponse"
5959-
tags:
5960-
- "Plugins"
5958+
tags: ["Plugins"]
5959+
59615960
/plugins/pull:
59625961
post:
59635962
summary: "Install a plugin"

0 commit comments

Comments
 (0)