* openapi: update

This commit is contained in:
Simon Zolin 2019-05-20 10:57:07 +03:00
parent 967517316f
commit 70e3299567
1 changed files with 14 additions and 25 deletions

View File

@ -151,6 +151,17 @@ paths:
description: 'Cannot write answer' description: 'Cannot write answer'
502: 502:
description: 'Cannot retrieve the version.json file contents' description: 'Cannot retrieve the version.json file contents'
/update:
post:
tags:
- global
operationId: beginUpdate
summary: 'Begin auto-upgrade procedure'
responses:
200:
description: OK
500:
description: Failed
# -------------------------------------------------- # --------------------------------------------------
# Query log methods # Query log methods
@ -906,17 +917,8 @@ definitions:
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"
required:
- "version"
- "announcement"
- "announcement_url"
- "download_darwin_amd64"
- "download_linux_amd64"
- "download_linux_386"
- "download_linux_arm"
- "selfupdate_min_version"
properties: properties:
version: new_version:
type: "string" type: "string"
example: "v0.9" example: "v0.9"
announcement: announcement:
@ -925,21 +927,8 @@ definitions:
announcement_url: announcement_url:
type: "string" type: "string"
example: "https://github.com/AdguardTeam/AdGuardHome/releases/tag/v0.9" example: "https://github.com/AdguardTeam/AdGuardHome/releases/tag/v0.9"
download_darwin_amd64: can_autoupdate:
type: "string" type: "boolean"
example: "https://github.com/AdguardTeam/AdGuardHome/releases/download/v0.9/AdGuardHome_v0.9_MacOS.zip"
download_linux_amd64:
type: "string"
example: "https://github.com/AdguardTeam/AdGuardHome/releases/download/v0.9/AdGuardHome_v0.9_linux_amd64.tar.gz"
download_linux_386:
type: "string"
example: "https://github.com/AdguardTeam/AdGuardHome/releases/download/v0.9/AdGuardHome_v0.9_linux_386.tar.gz"
download_linux_arm:
type: "string"
example: "https://github.com/AdguardTeam/AdGuardHome/releases/download/v0.9/AdGuardHome_v0.9_linux_arm.tar.gz"
selfupdate_min_version:
type: "string"
example: "v0.0"
Stats: Stats:
type: "object" type: "object"
description: "General server stats for the last 24 hours" description: "General server stats for the last 24 hours"