mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
add status code 404 for plugin api endpoint enable and disable
Signed-off-by: allencloud <allen.sun@daocloud.io>
This commit is contained in:
parent
edd977db97
commit
75f7305888
2 changed files with 10 additions and 0 deletions
|
@ -6610,6 +6610,10 @@ paths:
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: "no error"
|
description: "no error"
|
||||||
|
404:
|
||||||
|
description: "plugin is not installed"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/ErrorResponse"
|
||||||
500:
|
500:
|
||||||
description: "server error"
|
description: "server error"
|
||||||
schema:
|
schema:
|
||||||
|
@ -6633,6 +6637,10 @@ paths:
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: "no error"
|
description: "no error"
|
||||||
|
404:
|
||||||
|
description: "plugin is not installed"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/ErrorResponse"
|
||||||
500:
|
500:
|
||||||
description: "server error"
|
description: "server error"
|
||||||
schema:
|
schema:
|
||||||
|
|
|
@ -3800,6 +3800,7 @@ Content-Type: text/plain; charset=utf-8
|
||||||
**Status codes**:
|
**Status codes**:
|
||||||
|
|
||||||
- **200** - no error
|
- **200** - no error
|
||||||
|
- **404** - plugin not installed
|
||||||
- **500** - plugin is already enabled
|
- **500** - plugin is already enabled
|
||||||
|
|
||||||
#### Disable a plugin
|
#### Disable a plugin
|
||||||
|
@ -3828,6 +3829,7 @@ Content-Type: text/plain; charset=utf-8
|
||||||
**Status codes**:
|
**Status codes**:
|
||||||
|
|
||||||
- **200** - no error
|
- **200** - no error
|
||||||
|
- **404** - plugin not installed
|
||||||
- **500** - plugin is already disabled
|
- **500** - plugin is already disabled
|
||||||
|
|
||||||
#### Remove a plugin
|
#### Remove a plugin
|
||||||
|
|
Loading…
Add table
Reference in a new issue