feat: add reboot and shutdown

This commit is contained in:
2025-05-13 14:37:32 +02:00
parent 9c80c1e771
commit ee0489dcbb
7 changed files with 144 additions and 21 deletions

View File

@@ -494,3 +494,46 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
/system/restart:
post:
summary: Restart system
description: Restarts the system
responses:
'200':
description: System restarted successfully
content:
application/json:
schema:
type: object
properties:
status:
type: string
example: "success"
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/system/shutdown:
post:
summary: Shutdown system
description: Shuts down the system
responses:
'200':
description: System shut down successfully
content:
application/json:
schema:
type: object
properties:
status:
type: string
example: "success"
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'