* openapi

This commit is contained in:
Simon Zolin 2019-09-06 18:48:58 +03:00
parent 250f829b29
commit 215a488a64
1 changed files with 14 additions and 5 deletions

View File

@ -176,16 +176,16 @@ paths:
# -------------------------------------------------- # --------------------------------------------------
/querylog: /querylog:
get: post:
tags: tags:
- log - log
operationId: queryLog operationId: queryLog
summary: 'Get DNS server query log' summary: 'Get DNS server query log'
parameters: parameters:
- in: query - in: "body"
name: download name: "body"
type: boolean schema:
description: 'If any value is set, make the browser download the query instead of displaying it by setting Content-Disposition header' $ref: '#/definitions/QueryLogRequest'
responses: responses:
200: 200:
description: OK description: OK
@ -1393,12 +1393,21 @@ definitions:
type: "string" type: "string"
description: "DNS request processing start time" description: "DNS request processing start time"
example: "2018-11-26T00:02:41+03:00" example: "2018-11-26T00:02:41+03:00"
QueryLog: QueryLog:
type: "array" type: "array"
description: "Query log" description: "Query log"
items: items:
$ref: "#/definitions/QueryLogItem" $ref: "#/definitions/QueryLogItem"
QueryLogRequest:
type: "object"
description: "Query log request data"
properties:
offset:
type: "integer"
example: 1234
QueryLogConfig: QueryLogConfig:
type: "object" type: "object"
description: "Query log configuration" description: "Query log configuration"