node-wot icon indicating copy to clipboard operation
node-wot copied to clipboard

Update API.md

Open danielpeintner opened this issue 2 years ago • 0 comments

https://github.com/eclipse/thingweb.node-wot/pull/799 was referring to API.md.

I quickly scanned the document since it has been a while since I last checked it. I think there are some aspects we need to update.

  • I believe it uses an out-dated API, for example readProperty does not call value() https://github.com/eclipse/thingweb.node-wot/blob/b872b5b4d06a5feee9fe503af4ea5598c0ba674d/API.md?plain=1#L182-L185
  • style: it uses new Promise() ... instead of async await. For example https://github.com/eclipse/thingweb.node-wot/blob/b872b5b4d06a5feee9fe503af4ea5598c0ba674d/API.md?plain=1#L124-L129
  • maybe more issues?

danielpeintner avatar Jul 11 '22 14:07 danielpeintner