mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-10 09:49:41 +03:00
+ openapi: add /blocked_services/*
This commit is contained in:
parent
87b379b140
commit
3c684d1f85
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user