docs: http client docs

This commit is contained in:
Dimitry Kolyshev
2023-11-20 15:08:44 +02:00
parent 944e0d7a4b
commit 4a9dc1d6c1
3 changed files with 35 additions and 0 deletions

View File

@@ -6,6 +6,18 @@
## v0.107.42: API changes
### The new fields `"upstreams_cache_enabled"` and `"upstreams_cache_size"` in `Client` object
* The new field `"upstreams_cache_enabled"` in `GET /control/clients`,
`GET /control/clients/find`, `POST /control/clients/add`, and
`POST /control/clients/update` methods shows if client's DNS cache is enabled
for the client. If not set AdGuard Home will use default value (false).
* The new field `"upstreams_cache_size"` in `GET /control/clients`,
`GET /control/clients/find`, `POST /control/clients/add`, and
`POST /control/clients/update` methods is the size of client's DNS cache in
bytes.
### The new field `"ratelimit_subnet_len_ipv4"` in `DNSConfig` object
* The new field `"ratelimit_subnet_len_ipv4"` in `GET /control/dns_info` and

View File

@@ -2684,6 +2684,25 @@
If `ignore_statistics` is not set in HTTP API `GET /clients/update`
request then the existing value will not be changed.
This behaviour can be changed in the future versions.
'type': 'boolean'
'upstreams_cache_enabled':
'description': |
NOTE: If `upstreams_cache_enabled` is not set in HTTP API
`GET /clients/add` request then default value (false) will be used.
If `upstreams_cache_enabled` is not set in HTTP API
`GET /clients/update` request then the existing value will not be
changed.
This behaviour can be changed in the future versions.
'type': 'boolean'
'upstreams_cache_size':
'description': |
NOTE: If `upstreams_cache_enabled` is not set in HTTP API
`GET /clients/update` request then the existing value will not be
changed.
This behaviour can be changed in the future versions.
'type': 'boolean'
'ClientAuto':