Next: Configuration Reference, Previous: Configuration Overview, Up: STARTER Http Bridge [Contents]
The shipped sample examples/http-bridge.sthb.xml publishes
ST:HttpBridge with two writable inputs (ManualHeat,
ManualSetpoint) and one read-only output (HeatFeedback),
listening on 127.0.0.1:18766.
$ starter-http-bridge -c examples/http-bridge.sthb.xml
$ curl -s http://127.0.0.1:18766/health
$ curl -s -X PUT http://127.0.0.1:18766/input/ManualSetpoint/val \
-H 'Content-Type: application/json' -d '21.5'
When <api-token> is set, add
Authorization: Bearer token to every request.