feat: delete firmware

This commit is contained in:
2025-10-22 21:14:07 +02:00
parent 4a11bad7dd
commit 6ed905b9f3
6 changed files with 163 additions and 0 deletions

View File

@@ -201,6 +201,60 @@ paths:
schema:
type: string
delete:
summary: Delete firmware binary
description: |
Delete the firmware binary and metadata for the specified name and version.
This action cannot be undone.
operationId: deleteFirmware
parameters:
- name: name
in: path
description: Firmware name
required: true
schema:
type: string
example: "base"
- name: version
in: path
description: Firmware version (semantic versioning)
required: true
schema:
type: string
example: "1.0.0"
responses:
'200':
description: Firmware deleted successfully
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
message:
type: string
example: "Firmware deleted successfully"
name:
type: string
example: "base"
version:
type: string
example: "1.0.0"
'404':
description: Firmware not found
content:
text/plain:
schema:
type: string
'500':
description: Internal server error
content:
text/plain:
schema:
type: string
/health:
get:
summary: Health check