+ openapi: add /blocked_services/*

This commit is contained in:
Simon Zolin 2019-07-29 19:14:17 +03:00
parent 87b379b140
commit 3c684d1f85

View File

@ -786,6 +786,35 @@ paths:
200: 200:
description: OK 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 # Rewrite methods
# -------------------------------------------------- # --------------------------------------------------
@ -1644,6 +1673,11 @@ definitions:
description: "value of A, AAAA or CNAME DNS record" description: "value of A, AAAA or CNAME DNS record"
example: "127.0.0.1" example: "127.0.0.1"
BlockedServicesArray:
type: "array"
items:
type: "string"
CheckConfigRequest: CheckConfigRequest:
type: "object" type: "object"
description: "Configuration to be checked" description: "Configuration to be checked"