* openapi.yaml: update /version.json
This commit is contained in:
parent
0e9df33a40
commit
d2258cb66d
|
@ -135,11 +135,19 @@ paths:
|
||||||
"192.168.1.104:53535": "Couldn't communicate with DNS server"
|
"192.168.1.104:53535": "Couldn't communicate with DNS server"
|
||||||
|
|
||||||
/version.json:
|
/version.json:
|
||||||
get:
|
post:
|
||||||
tags:
|
tags:
|
||||||
- global
|
- global
|
||||||
operationId: getVersionJson
|
operationId: getVersionJson
|
||||||
summary: 'Gets information about the latest available version of AdGuard'
|
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:
|
produces:
|
||||||
- 'application/json'
|
- 'application/json'
|
||||||
responses:
|
responses:
|
||||||
|
@ -994,6 +1002,13 @@ definitions:
|
||||||
example:
|
example:
|
||||||
- '||example.org^'
|
- '||example.org^'
|
||||||
- '||example.com^'
|
- '||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:
|
VersionInfo:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: "Information about the latest available version of AdGuard Home"
|
description: "Information about the latest available version of AdGuard Home"
|
||||||
|
|
Loading…
Reference in New Issue