From 54c37ecc23e008fa2a7c3c104f87f5e430bf9b29 Mon Sep 17 00:00:00 2001 From: Ben Firshman Date: Wed, 9 Nov 2016 11:25:23 -0800 Subject: [PATCH] Add /plugins/{name}/set endpoint to swagger.yaml Signed-off-by: Ben Firshman --- api/swagger.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/api/swagger.yaml b/api/swagger.yaml index 5a31f49772..0b7e0f81c7 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -6330,6 +6330,36 @@ paths: format: "binary" tags: - "Plugins" + /plugins/{name}/set: + post: + summary: "Configure a plugin" + operationId: "PluginsSet" + parameters: + - name: "name" + in: "path" + description: "The name of the plugin. The `:latest` tag is optional, and is the default if omitted." + required: true + type: "string" + - name: "body" + in: "body" + schema: + type: "array" + items: + type: "string" + example: ["DEBUG=1"] + responses: + 204: + description: "No error" + 404: + description: "Plugin not installed" + schema: + $ref: "#/definitions/ErrorResponse" + 500: + description: "Server error" + schema: + $ref: "#/definitions/ErrorResponse" + tags: + - "Plugins" /nodes: get: summary: "List nodes"