API Reference
Less than 1 minute
API Reference
RESTful API with JWT authentication.
Authentication
POST /login
{ "username": "admin", "password": "admin123" }
→ { "token": "eyJ..." }All subsequent requests require: Authorization: Bearer {token}
Key Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /iot/product/list | List products |
| POST | /iot/product | Create product |
| GET | /iot/device/list | List devices |
| POST | /iot/device | Create device |
| GET | /iot/device/runtime/ | Device real-time data |
| GET | /iot/thingsModel/list | Thing models |
| GET | /iot/scene/list | List scenes |
| PUT | /iot/scene/trigger | Trigger scene |
Info
Full API docs available via Swagger at /doc.html after startup.
