WebThingsIO / gateway

WebThings Gateway - a self-hosted web application for monitoring and controlling a building over the web
http://webthings.io/gateway
Mozilla Public License 2.0
2.62k stars 339 forks source link

Serve a Thing Description for the gateway - closes #2927 #3148

Closed benfrancis closed 3 months ago

benfrancis commented 3 months ago

Builds on #3147 so will need rebasing once that lands.

Closes #2927.

This PR enables the gateway to serve a top level W3C WoT Thing Description for the gateway itself, which describes the parts of the W3C WoT Directory Service API which the gateway currently exposes.

Note that there are currently some differences from the Thing Model published by the W3C including content types (no support for application/td+json and application/problem+json) and response codes. Also, event affordances and search affordances are not currently implemented.