From 3c684d1f85c853e039c28b909a55977431ae6ddc Mon Sep 17 00:00:00 2001 From: Simon Zolin Date: Mon, 29 Jul 2019 19:14:17 +0300 Subject: [PATCH] + openapi: add /blocked_services/* --- openapi/openapi.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/openapi/openapi.yaml b/openapi/openapi.yaml index 2679ebc6..d3a50a08 100644 --- a/openapi/openapi.yaml +++ b/openapi/openapi.yaml @@ -786,6 +786,35 @@ paths: 200: description: OK + + /blocked_services/list: + get: + tags: + - blocked_services + operationId: blockedServicesList + summary: 'Get blocked services list' + responses: + 200: + description: OK + schema: + $ref: "#/definitions/BlockedServicesArray" + + /blocked_services/set: + post: + tags: + - blocked_services + operationId: blockedServicesSet + summary: 'Set blocked services list' + parameters: + - in: body + name: "body" + schema: + $ref: "#/definitions/BlockedServicesArray" + responses: + 200: + description: OK + + # -------------------------------------------------- # Rewrite methods # -------------------------------------------------- @@ -1644,6 +1673,11 @@ definitions: description: "value of A, AAAA or CNAME DNS record" example: "127.0.0.1" + BlockedServicesArray: + type: "array" + items: + type: "string" + CheckConfigRequest: type: "object" description: "Configuration to be checked"