mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Cleanup network swagger spec.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
5c2498fd3c
commit
52a4737319
1 changed files with 21 additions and 22 deletions
|
@ -5560,7 +5560,7 @@ paths:
|
||||||
/networks:
|
/networks:
|
||||||
get:
|
get:
|
||||||
summary: "List networks"
|
summary: "List networks"
|
||||||
operationId: "GetNetworksList"
|
operationId: "NetworksList"
|
||||||
produces:
|
produces:
|
||||||
- "application/json"
|
- "application/json"
|
||||||
responses:
|
responses:
|
||||||
|
@ -5634,12 +5634,12 @@ paths:
|
||||||
- `name=<network-name>` Matches all or part of a network name.
|
- `name=<network-name>` Matches all or part of a network name.
|
||||||
- `type=["custom"|"builtin"]` Filters networks by type. The `custom` keyword returns all user-defined networks.
|
- `type=["custom"|"builtin"]` Filters networks by type. The `custom` keyword returns all user-defined networks.
|
||||||
type: "string"
|
type: "string"
|
||||||
tags:
|
tags: ["Network"]
|
||||||
- "Network"
|
|
||||||
/networks/{id}:
|
/networks/{id}:
|
||||||
get:
|
get:
|
||||||
summary: "Inspect a network"
|
summary: "Inspect a network"
|
||||||
operationId: "GetNetworksInspect"
|
operationId: "NetworksInspect"
|
||||||
produces:
|
produces:
|
||||||
- "application/json"
|
- "application/json"
|
||||||
responses:
|
responses:
|
||||||
|
@ -5657,8 +5657,8 @@ paths:
|
||||||
description: "Network ID or name"
|
description: "Network ID or name"
|
||||||
required: true
|
required: true
|
||||||
type: "string"
|
type: "string"
|
||||||
tags:
|
tags: ["Network"]
|
||||||
- "Network"
|
|
||||||
delete:
|
delete:
|
||||||
summary: "Remove a network"
|
summary: "Remove a network"
|
||||||
operationId: "DeleteNetworks"
|
operationId: "DeleteNetworks"
|
||||||
|
@ -5679,12 +5679,12 @@ paths:
|
||||||
description: "Network ID or name"
|
description: "Network ID or name"
|
||||||
required: true
|
required: true
|
||||||
type: "string"
|
type: "string"
|
||||||
tags:
|
tags: ["Network"]
|
||||||
- "Network"
|
|
||||||
/networks/create:
|
/networks/create:
|
||||||
post:
|
post:
|
||||||
summary: "Create a network"
|
summary: "Create a network"
|
||||||
operationId: "PostNetworksCreate"
|
operationId: "NetworksCreate"
|
||||||
consumes:
|
consumes:
|
||||||
- "application/json"
|
- "application/json"
|
||||||
produces:
|
produces:
|
||||||
|
@ -5774,12 +5774,12 @@ paths:
|
||||||
Labels:
|
Labels:
|
||||||
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"
|
||||||
tags:
|
tags: ["Network"]
|
||||||
- "Network"
|
|
||||||
/networks/{id}/connect:
|
/networks/{id}/connect:
|
||||||
post:
|
post:
|
||||||
summary: "Connect a container to a network"
|
summary: "Connect a container to a network"
|
||||||
operationId: "PostNetworksConnect"
|
operationId: "NetworksConnect"
|
||||||
consumes:
|
consumes:
|
||||||
- "application/octet-stream"
|
- "application/octet-stream"
|
||||||
responses:
|
responses:
|
||||||
|
@ -5820,12 +5820,12 @@ paths:
|
||||||
IPAMConfig:
|
IPAMConfig:
|
||||||
IPv4Address: "172.24.56.89"
|
IPv4Address: "172.24.56.89"
|
||||||
IPv6Address: "2001:db8::5689"
|
IPv6Address: "2001:db8::5689"
|
||||||
tags:
|
tags: ["Network"]
|
||||||
- "Network"
|
|
||||||
/networks/{id}/disconnect:
|
/networks/{id}/disconnect:
|
||||||
post:
|
post:
|
||||||
summary: "Disconnect a container from a network"
|
summary: "Disconnect a container from a network"
|
||||||
operationId: "PostNetworksDisconnect"
|
operationId: "NetworksDisconnect"
|
||||||
consumes:
|
consumes:
|
||||||
- "application/json"
|
- "application/json"
|
||||||
responses:
|
responses:
|
||||||
|
@ -5861,15 +5861,14 @@ paths:
|
||||||
Force:
|
Force:
|
||||||
type: "boolean"
|
type: "boolean"
|
||||||
description: "Force the container to disconnect from the network."
|
description: "Force the container to disconnect from the network."
|
||||||
tags:
|
tags: ["Network"]
|
||||||
- "Network"
|
|
||||||
/plugins:
|
/plugins:
|
||||||
get:
|
get:
|
||||||
summary: "List plugins"
|
summary: "List plugins"
|
||||||
operationId: "GetPluginsList"
|
operationId: "PluginsList"
|
||||||
description: "Returns information about installed plugins."
|
description: "Returns information about installed plugins."
|
||||||
produces:
|
produces: ["application/json"]
|
||||||
- "application/json"
|
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: "No error"
|
description: "No error"
|
||||||
|
@ -5956,8 +5955,8 @@ paths:
|
||||||
description: "Server error"
|
description: "Server error"
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/definitions/ErrorResponse"
|
$ref: "#/definitions/ErrorResponse"
|
||||||
tags:
|
tags: ["Plugins"]
|
||||||
- "Plugins"
|
|
||||||
/plugins/pull:
|
/plugins/pull:
|
||||||
post:
|
post:
|
||||||
summary: "Install a plugin"
|
summary: "Install a plugin"
|
||||||
|
|
Loading…
Reference in a new issue