From 215a488a64e812b08788afb3e2051c07420a351a Mon Sep 17 00:00:00 2001 From: Simon Zolin Date: Fri, 6 Sep 2019 18:48:58 +0300 Subject: [PATCH] * openapi --- openapi/openapi.yaml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/openapi/openapi.yaml b/openapi/openapi.yaml index 8febe107..ffb7fc4a 100644 --- a/openapi/openapi.yaml +++ b/openapi/openapi.yaml @@ -176,16 +176,16 @@ paths: # -------------------------------------------------- /querylog: - get: + post: tags: - log operationId: queryLog summary: 'Get DNS server query log' parameters: - - in: query - name: download - type: boolean - description: 'If any value is set, make the browser download the query instead of displaying it by setting Content-Disposition header' + - in: "body" + name: "body" + schema: + $ref: '#/definitions/QueryLogRequest' responses: 200: description: OK @@ -1393,12 +1393,21 @@ definitions: type: "string" description: "DNS request processing start time" example: "2018-11-26T00:02:41+03:00" + QueryLog: type: "array" description: "Query log" items: $ref: "#/definitions/QueryLogItem" + QueryLogRequest: + type: "object" + description: "Query log request data" + properties: + offset: + type: "integer" + example: 1234 + QueryLogConfig: type: "object" description: "Query log configuration"