hide thread configuration (for now)

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2026-01-01 17:40:23 +01:00
parent a66c48e713
commit ee587f1381
4 changed files with 135 additions and 5 deletions

View File

@@ -5,6 +5,7 @@ This document describes all REST API endpoints and WebSocket messages required f
## Table of Contents
- [REST API Endpoints](#rest-api-endpoints)
- [Capabilities](#capabilities)
- [WiFi](#wifi)
- [Light Control](#light-control)
- [LED Configuration](#led-configuration)
@@ -20,6 +21,33 @@ This document describes all REST API endpoints and WebSocket messages required f
## REST API Endpoints
### Capabilities
#### Get Device Capabilities
Returns the device capabilities. Used to determine which features are available.
- **URL:** `/api/capabilities`
- **Method:** `GET`
- **Response:**
```json
{
"thread": true
}
```
| Field | Type | Description |
|--------|---------|-------------------------------------------------------|
| thread | boolean | Whether Thread/Matter features are enabled |
**Notes:**
- If `thread` is `true`, the UI shows Matter device management and Scenes
- If `thread` is `false` or the endpoint is unavailable, these features are hidden
- The client can also force-enable features via URL parameter `?thread=true`
---
### WiFi
#### Scan Networks