Add websocket wifi updates
This commit is contained in:
parent
c443fce24f
commit
1477d909b0
11 changed files with 755 additions and 10 deletions
36
openapi.yaml
36
openapi.yaml
|
|
@ -28,6 +28,42 @@ tags:
|
|||
description: System logs and real-time monitoring
|
||||
|
||||
paths:
|
||||
/api/wifi/networks:
|
||||
get:
|
||||
tags:
|
||||
- WiFi
|
||||
summary: Get discovered WiFi networks
|
||||
description: |
|
||||
Returns the list of WiFi networks from the last scan without triggering a new scan.
|
||||
Returns an empty list if no scan has been performed yet.
|
||||
operationId: getWiFiNetworks
|
||||
responses:
|
||||
'200':
|
||||
description: List of discovered networks
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/WiFiNetwork'
|
||||
example:
|
||||
- ssid: "Hotel-Guest"
|
||||
signal: 5
|
||||
security: "WPA2"
|
||||
channel: 6
|
||||
bssid: "aa:bb:cc:dd:ee:ff"
|
||||
- ssid: "Public-WiFi"
|
||||
signal: 3
|
||||
security: "Open"
|
||||
channel: 11
|
||||
bssid: "11:22:33:44:55:66"
|
||||
'500':
|
||||
description: Error retrieving networks
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Error'
|
||||
|
||||
/api/wifi/scan:
|
||||
get:
|
||||
tags:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue