Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI: Provide message templates based on WoT model "actions" #1811

Open
thjaeckle opened this issue Nov 21, 2023 · 0 comments
Open

UI: Provide message templates based on WoT model "actions" #1811

thjaeckle opened this issue Nov 21, 2023 · 0 comments
Labels
good-first-issue help wanted UI Issues related to the Ditto explorer UI WoT Web of Things related enhancements

Comments

@thjaeckle
Copy link
Member

When fully embracing using WoT ThingModels to define the capabilities of things, it would be really powerful if the Ditto UI would not only show the "WoT TD" in a tab, but also use the TD to present the user the available "actions" to invoke on a thing and on a feature level.

The WoT TD "action" should define all we need:

  • action name is the "message subject"
  • from the "title" and "description" the Ditto UI could show a small "help" about the action
  • "input" is the request payload and includes a JsonSchema which the Ditto UI could
    • provide a "JSON skeleton" for with default values to quickly see what fields are there and which data type they have
    • validate input based on the schema

This would be an example "action" containing "title", "description" and "input" with a very simple payload (an "integer"):
https://github.com/eclipse-ditto/ditto-examples/blob/82451ac0b510e34bb5409cdf9128e7d315965931/wot/models/switchable-1.0.0.tm.jsonld#L30-L38

@thjaeckle thjaeckle added help wanted UI Issues related to the Ditto explorer UI labels Nov 21, 2023
@thjaeckle thjaeckle added the WoT Web of Things related enhancements label Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good-first-issue help wanted UI Issues related to the Ditto explorer UI WoT Web of Things related enhancements
Projects
None yet
Development

No branches or pull requests

1 participant