Merge branch 'development-v6' into fix/test_all_the_api

This commit is contained in:
DL6ER
2023-11-02 05:32:16 +01:00
3 changed files with 0 additions and 58 deletions
-2
View File
@@ -105,8 +105,6 @@ int api_teleporter(struct ftl_conn *api);
// Action methods
int api_action_gravity(struct ftl_conn *api);
int api_action_poweroff(struct ftl_conn *api);
int api_action_reboot(struct ftl_conn *api);
int api_action_restartDNS(struct ftl_conn *api);
int api_action_flush_logs(struct ftl_conn *api);
int api_action_flush_arp(struct ftl_conn *api);
-50
View File
@@ -63,56 +63,6 @@ components:
application/json:
schema:
$ref: 'common.yaml#/components/errors/unauthorized'
reboot:
post:
summary: Reboot the system
tags:
- Actions
operationId: "action_reboot"
description: |
Reboots the system Pi-hole is running on. Note that this should be done as a last-resort only as it will forcefully interrupt all currently running processes.
responses:
'200':
description: OK
content:
application/json:
schema:
allOf:
- $ref: 'common.yaml#/components/schemas/success'
- $ref: 'common.yaml#/components/schemas/took'
'401':
description: Unauthorized
content:
application/json:
schema:
allOf:
- $ref: 'common.yaml#/components/errors/unauthorized'
- $ref: 'common.yaml#/components/schemas/took'
poweroff:
post:
summary: Poweroff the system
tags:
- Actions
operationId: "action_poweroff"
description: |
Halts and powers off the system Pi-hole is running on. Note that this should be done as a last-resort only as it will forcefully interrupt all currently running processes.
responses:
'200':
description: OK
content:
application/json:
schema:
allOf:
- $ref: 'common.yaml#/components/schemas/success'
- $ref: 'common.yaml#/components/schemas/took'
'401':
description: Unauthorized
content:
application/json:
schema:
allOf:
- $ref: 'common.yaml#/components/errors/unauthorized'
- $ref: 'common.yaml#/components/schemas/took'
restartdns:
post:
summary: Restart pihole-FTL
-6
View File
@@ -247,12 +247,6 @@ paths:
/action/flush/arp:
$ref: 'action.yaml#/components/paths/flush_arp'
/action/reboot:
$ref: 'action.yaml#/components/paths/reboot'
/action/poweroff:
$ref: 'action.yaml#/components/paths/poweroff'
/dhcp/leases:
$ref: 'dhcp.yaml#/components/paths/leases'