mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-16 10:28:29 -07:00
* update openapi.yaml
This commit is contained in:
parent
faa7c7b2d4
commit
9e68a522cb
@ -739,6 +739,26 @@ paths:
|
|||||||
description: OK
|
description: OK
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/definitions/AddressesInfo"
|
$ref: "#/definitions/AddressesInfo"
|
||||||
|
/install/check_config:
|
||||||
|
post:
|
||||||
|
tags:
|
||||||
|
- install
|
||||||
|
operationId: installCheckConfig
|
||||||
|
summary: "Checks configuration"
|
||||||
|
parameters:
|
||||||
|
- in: "body"
|
||||||
|
name: "body"
|
||||||
|
description: "Configuration to be checked"
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/CheckConfigRequest"
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: OK
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/CheckConfigResponse"
|
||||||
|
400:
|
||||||
|
description: "Failed to parse JSON or cannot listen on the specified address"
|
||||||
/install/configure:
|
/install/configure:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
@ -1320,17 +1340,18 @@ definitions:
|
|||||||
type: "integer"
|
type: "integer"
|
||||||
format: "int32"
|
format: "int32"
|
||||||
example: 53
|
example: 53
|
||||||
warning:
|
|
||||||
type: "string"
|
|
||||||
example: "Cannot bind to this port"
|
|
||||||
AddressesInfo:
|
AddressesInfo:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: "AdGuard Home addresses configuration"
|
description: "AdGuard Home addresses configuration"
|
||||||
properties:
|
properties:
|
||||||
dns:
|
dns_port:
|
||||||
$ref: "#/definitions/AddressInfo"
|
type: "integer"
|
||||||
web:
|
format: "int32"
|
||||||
$ref: "#/definitions/AddressInfo"
|
example: 53
|
||||||
|
web_port:
|
||||||
|
type: "integer"
|
||||||
|
format: "int32"
|
||||||
|
example: 80
|
||||||
interfaces:
|
interfaces:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: "Network interfaces dictionary (key is the interface name)"
|
description: "Network interfaces dictionary (key is the interface name)"
|
||||||
@ -1353,6 +1374,43 @@ definitions:
|
|||||||
items:
|
items:
|
||||||
$ref: "#/definitions/Client"
|
$ref: "#/definitions/Client"
|
||||||
description: "Clients array"
|
description: "Clients array"
|
||||||
|
CheckConfigRequest:
|
||||||
|
type: "object"
|
||||||
|
description: "Configuration to be checked"
|
||||||
|
properties:
|
||||||
|
dns:
|
||||||
|
$ref: "#/definitions/CheckConfigRequestInfo"
|
||||||
|
web:
|
||||||
|
$ref: "#/definitions/CheckConfigRequestInfo"
|
||||||
|
CheckConfigRequestInfo:
|
||||||
|
type: "object"
|
||||||
|
properties:
|
||||||
|
ip:
|
||||||
|
type: "string"
|
||||||
|
example: "127.0.0.1"
|
||||||
|
port:
|
||||||
|
type: "integer"
|
||||||
|
format: "int32"
|
||||||
|
example: 53
|
||||||
|
autofix:
|
||||||
|
type: "boolean"
|
||||||
|
example: false
|
||||||
|
CheckConfigResponse:
|
||||||
|
type: "object"
|
||||||
|
properties:
|
||||||
|
dns:
|
||||||
|
$ref: "#/definitions/CheckConfigResponseInfo"
|
||||||
|
web:
|
||||||
|
$ref: "#/definitions/CheckConfigResponseInfo"
|
||||||
|
CheckConfigResponseInfo:
|
||||||
|
type: "object"
|
||||||
|
properties:
|
||||||
|
status:
|
||||||
|
type: "string"
|
||||||
|
example: ""
|
||||||
|
can_autofix:
|
||||||
|
type: "boolean"
|
||||||
|
example: false
|
||||||
InitialConfiguration:
|
InitialConfiguration:
|
||||||
type: "object"
|
type: "object"
|
||||||
description: "AdGuard Home initial configuration (for the first-install wizard)"
|
description: "AdGuard Home initial configuration (for the first-install wizard)"
|
||||||
|
Loading…
Reference in New Issue
Block a user