* openapi: update 'QueryLog'

This commit is contained in:
Simon Zolin 2019-11-14 15:18:43 +03:00
parent 68cd7976b7
commit 33093de6aa
2 changed files with 49 additions and 3 deletions

View File

@ -1,6 +1,46 @@
# AdGuard Home API Change Log
## v0.99.3: API changes
### API: Get query log: GET /control/querylog
The response data is now a JSON object, not an array.
Response:
200 OK
{
"oldest":"2006-01-02T15:04:05.999999999Z07:00"
"data":[
{
"answer":[
{
"ttl":10,
"type":"AAAA",
"value":"::"
}
...
],
"client":"127.0.0.1",
"elapsedMs":"0.098403",
"filterId":1,
"question":{
"class":"IN",
"host":"doubleclick.net",
"type":"AAAA"
},
"reason":"FilteredBlackList",
"rule":"||doubleclick.net^",
"status":"NOERROR",
"time":"2006-01-02T15:04:05.999999999Z07:00"
}
...
]
}
## v0.99.1: API changes
### API: Get current user info: GET /control/profile

View File

@ -1417,10 +1417,16 @@ definitions:
example: "2018-11-26T00:02:41+03:00"
QueryLog:
type: "array"
type: "object"
description: "Query log"
items:
$ref: "#/definitions/QueryLogItem"
properties:
oldest:
type: "string"
example: "2018-11-26T00:02:41+03:00"
data:
type: "array"
items:
$ref: "#/definitions/QueryLogItem"
QueryLogConfig:
type: "object"