summaryrefslogtreecommitdiff
path: root/doc/api/future.md
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2025-07-26 23:16:34 +0200
committerxengineering <me@xengineering.eu>2025-07-26 23:16:34 +0200
commit05579afdc2fd425b697b2ac77ba9e82eaaac9719 (patch)
tree58f8c85bac53fbb7b85852ec63d36b3068ffc2a6 /doc/api/future.md
parent325f029c35422267c4b3267838b9a46b4baf39e2 (diff)
downloadiot-contact-05579afdc2fd425b697b2ac77ba9e82eaaac9719.tar
iot-contact-05579afdc2fd425b697b2ac77ba9e82eaaac9719.tar.zst
iot-contact-05579afdc2fd425b697b2ac77ba9e82eaaac9719.zip
doc: api: future: Introduce device info concept
This reduces the HTTP endpoints and overhead.
Diffstat (limited to 'doc/api/future.md')
-rw-r--r--doc/api/future.md27
1 files changed, 22 insertions, 5 deletions
diff --git a/doc/api/future.md b/doc/api/future.md
index 4cf0d40..7530704 100644
--- a/doc/api/future.md
+++ b/doc/api/future.md
@@ -22,15 +22,32 @@ accessed directly with its link-local address.
# HTTP Server
-- `GET /device/type` `text/plain`
-- `GET /device/type/uuid` `text/plain`
-- `GET /device/hardware/version` `text/plain`
-- `GET /device/firmware/version` `text/plain`
-- `GET /device/mac-address/eui-48` `text/plain`
+- `GET /` `application/json` (returns device info, see below)
- `GET /settings` `application/json`
- `PUT /settings` `application/json`
+# Device Info
+
+```
+{
+ "hostname": "mydevice",
+ "type": {
+ "text": "iot-contact",
+ "uuid": "eeb58c52-8e25-489c-9a1a-c4662fc9318a"
+ },
+ "version": {
+ "hardware": "v1.2.3",
+ "firmware": "v4.5.6"
+ },
+ "address": {
+ "mac": {
+ "eui-48": "00:00:5e:00:53:01"
+ }
+ }
+}
+```
+
# Settings
```