tum-esi / wade

WoT API Development Environment built on top of thingweb.node-wot
https://www.ei.tum.de/en/esi/home/
MIT License
24 stars 6 forks source link

Make selection of specific form element available #8

Open eileenoo opened 4 years ago

eileenoo commented 4 years ago

Node-wot automatically selects the first available form of an interaction affordance. Therefore, users aren't able to select a specific form nor protocol This needs to be implemented.

A possible solution / workaround for now: before consuming the TD remove all form elements and only leave the desired one.

When users can select the form/ protocol, the dynamic- and staticTiming elements need to be added to the specific form element.

egekorkan commented 4 years ago

I support this, however, how will the user select the forms? This is also being discussed in node-wot and scripting api. The relevant issues are below:

  1. https://github.com/eclipse/thingweb.node-wot/issues/199
  2. https://github.com/w3c/wot-scripting-api/issues/201
egekorkan commented 4 years ago

It could also be that two forms are both HTTP but one is a local IP and the other one is a WWW URI that needs Internet access. node-wot is not able to choose one or the other based on which one it can access.

Hopefully, we will not see this for a while but it can also be that for eventing, one form can have something like HTTP longpoll whereas the other one has proper eventing with websub, sse etc.

eileenoo commented 4 years ago

I support this, however, how will the user select the forms? This is also being discussed in node-wot and scripting api. The relevant issues are below:

  1. eclipse/thingweb.node-wot#199
  2. w3c/wot-scripting-api#201

It could also be that two forms are both HTTP but one is a local IP and the other one is a WWW URI that needs Internet access. node-wot is not able to choose one or the other based on which one it can access.

Hopefully, we will not see this for a while but it can also be that for eventing, one form can have something like HTTP longpoll whereas the other one has proper eventing with websub, sse etc.

I agree. It is not an easy thing to implement and some more thoughts have to be put into it.