Next: , Previous: , Up: STARTER Http Bridge   [Contents]


6 REST API

All responses use Content-Type: application/json. No other wire formats are supported.

When <api-token> is configured, unauthenticated calls return 401 with { "error":"unauthorized" }.

I/O objects contain: name, description, unit, min, max, step, val, flags.

GET /health
GET /info
GET /io
GET /input
GET /output
GET /input/name
GET /output/name
GET /input/name/field
GET /output/name/field

Field is one of val, flags, description, unit, min, max, step (JSON scalar).

PUT/POST /input/name

Body { "val": n, "flags": n } (either or both).

PUT/POST /input/name/val

Raw JSON number or { "val": n }.

PUT/POST /input/name/flags

Raw JSON number or { "flags": n }.

Writing outputs or schema fields returns 405.