Add GET /api/teleporter

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2023-01-23 21:56:11 +01:00
parent 4c62a02026
commit 13168c377b
20 changed files with 266 additions and 61 deletions
+3
View File
@@ -194,6 +194,9 @@ paths:
/network/interfaces:
$ref: 'network.yaml#/components/paths/interfaces'
/teleporter:
$ref: 'teleporter.yaml#/components/paths/teleporter'
components:
securitySchemes:
sidHeader:
@@ -0,0 +1,25 @@
openapi: 3.0.2
components:
paths:
teleporter:
get:
summary: Export Pi-hole settings
tags:
- "Pi-hole configuration"
operationId: "get_teleporter"
description: |
Request an archived copy of your Pi-hole's current configuration
responses:
'200':
description: OK
content:
application/zip:
schema:
type: string
format: binary
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: 'common.yaml#/components/errors/unauthorized'