From d2258cb66de32092f145f2803a7be3d7869970f2 Mon Sep 17 00:00:00 2001 From: Simon Zolin Date: Thu, 27 Jun 2019 10:52:45 +0300 Subject: [PATCH] * openapi.yaml: update /version.json --- openapi/openapi.yaml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/openapi/openapi.yaml b/openapi/openapi.yaml index 385ac057..063b85c7 100644 --- a/openapi/openapi.yaml +++ b/openapi/openapi.yaml @@ -135,11 +135,19 @@ paths: "192.168.1.104:53535": "Couldn't communicate with DNS server" /version.json: - get: + post: tags: - global operationId: getVersionJson summary: 'Gets information about the latest available version of AdGuard' + consumes: + - application/json + parameters: + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/GetVersionRequest" produces: - 'application/json' responses: @@ -994,6 +1002,13 @@ definitions: example: - '||example.org^' - '||example.com^' + GetVersionRequest: + type: "object" + description: "/version.json request data" + properties: + recheck_now: + description: "If false, server will check for a new version data only once in several hours" + type: "boolean" VersionInfo: type: "object" description: "Information about the latest available version of AdGuard Home"