eclipse-thingweb / node-wot

Components for building WoT devices or for interacting with them over various IoT protocols
https://thingweb.io
Other
162 stars 78 forks source link

Let node-wot be a WoT Thing Description directory #786

Open relu91 opened 2 years ago

relu91 commented 2 years ago

Given the recent advancement in the Discovery specification, node-wot might be a good fit for a Readonly directory and its thing description might be exposed to a well-known URL as asked in #411.

The current strategy of exposing the list of TDs at / is quite old and pre-dates the discovery specification. I think it should be updated.

danielpeintner commented 10 months ago

I think there are 2 different use-cases here

  1. Where to find the ThingDescription of a known thing. I think the answer here is simple and straightforward based on Section 6.2 of the discovery spec Instead of http://plugfest.thingweb.io:8083/counter it should be http://plugfest.thingweb.io:8083/counter/.well-known/wot see https://github.com/eclipse-thingweb/node-wot/issues/411
  2. List all possible things and/or TDs on http://plugfest.thingweb.io:8083. Is this Section 6.3 and Section 6.4 ? Can we easily support that in node-wot?