Skip to content

Commit

Permalink
Swagger: Add missing parameters for /upload and /update (#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
caco3 authored May 13, 2024
1 parent bf3af2e commit db47419
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion REST-API.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -451,13 +451,33 @@ paths:
responses:
'200':
description: Successful response for NVS backup upload.
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
format: binary
/update:
post:
summary: Upload new firmware.
description: Uploads new firmware to ESPuino.
description: Uploads new firmware to ESPuino. Make sure to restart afterwards.
responses:
'200':
description: Successful response for firmware update.
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
firmwareUpload:
type: string
format: binary
/restart:
post:
summary: Restart ESPuino.
Expand Down

0 comments on commit db47419

Please sign in to comment.