1
0
mirror of https://github.com/docker/cli.git synced 2026-01-13 18:22:35 +03:00

Merge pull request #30701 from allencloud/add-status-code-404-for-plugin-in-api-doc

add status code 404 for plugin api endpoint enable and disable
Upstream-commit: 0113128b2a79a9cef9950e71e0681380b240faf4
Component: engine
This commit is contained in:
Anusha Ragunathan
2017-02-06 11:53:17 -08:00
committed by GitHub
2 changed files with 10 additions and 0 deletions

View File

@@ -6614,6 +6614,10 @@ paths:
responses:
200:
description: "no error"
404:
description: "plugin is not installed"
schema:
$ref: "#/definitions/ErrorResponse"
500:
description: "server error"
schema:
@@ -6637,6 +6641,10 @@ paths:
responses:
200:
description: "no error"
404:
description: "plugin is not installed"
schema:
$ref: "#/definitions/ErrorResponse"
500:
description: "server error"
schema:

View File

@@ -3800,6 +3800,7 @@ Content-Type: text/plain; charset=utf-8
**Status codes**:
- **200** - no error
- **404** - plugin not installed
- **500** - plugin is already enabled
#### Disable a plugin
@@ -3828,6 +3829,7 @@ Content-Type: text/plain; charset=utf-8
**Status codes**:
- **200** - no error
- **404** - plugin not installed
- **500** - plugin is already disabled
#### Remove a plugin