* openapi: change /filtering/refresh

This commit is contained in:
Simon Zolin 2020-02-28 18:34:09 +03:00
parent 90b25300df
commit 897ff436b1
2 changed files with 29 additions and 0 deletions

View File

@ -1,6 +1,21 @@
# AdGuard Home API Change Log
## v0.101: API changes
### API: Refresh filters: POST /control/filtering/refresh
* Added "whitelist" boolean parameter
Request:
POST /control/filtering/refresh
{
"whitelist": true
}
## v0.100: API changes
### API: Get list of clients: GET /control/clients

View File

@ -570,6 +570,13 @@ paths:
This should work as intended, a `force` parameter is offered as last-resort attempt to make filter lists fresh.
If you ever find yourself using `force` to make something work that otherwise wont, this is a bug and report it accordingly.
consumes:
- application/json
parameters:
- in: "body"
name: "body"
schema:
$ref: "#/definitions/FilterRefreshRequest"
responses:
200:
description: OK
@ -1196,6 +1203,13 @@ definitions:
enabled:
type: "boolean"
FilterRefreshRequest:
type: "object"
description: "Refresh Filters request data"
properties:
whitelist:
type: "boolean"
FilterCheckHostResponse:
type: "object"
description: "Check Host Result"