+ openapi: add /blocked_services/*

This commit is contained in:
Simon Zolin 2019-07-29 19:14:17 +03:00
parent 87b379b140
commit 3c684d1f85
1 changed files with 34 additions and 0 deletions

View File

@ -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"