Merge pull request #1722 from pi-hole/poweroff
Remove traces of reboot and poweroff
This commit is contained in:
commit
4a78d886f3
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -244,12 +244,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'
|
||||
|
||||
|
|
Loading…
Reference in New Issue