Skip to content

Instantly share code, notes, and snippets.

View zolkis's full-sized avatar

Zoltan Kis zolkis

View GitHub Profile

#API brainstorming

For next versions.

Now that p2p was dropped, here is a brain dump for an alternative API. For future development considerations.

[SecureContext, Exposed=Window]
@zolkis
zolkis / wot-scripting-drafts.md
Last active February 14, 2019 08:04
WoT Scripting ideas

Check the comments below on how we arrived to this variant.

typedef DOMString PropertyFragment;  // serialized TD Property
// includes InteractionPattern and DataSchema
//   InteractionPattern contains: title, titles, description, descriptions, forms, security, uriVariables
//   DataSchema contains: type, unit,  enum, oneOf, const, readOnly, writeOnly
//       repeated (from InteractionPattern): [ title, titles, description, descriptions ]