Skip to content

Instantly share code, notes, and snippets.

@farshidtz
Last active January 24, 2021 16:50
Show Gist options
  • Save farshidtz/face298c1ad258ca290414a1714a9537 to your computer and use it in GitHub Desktop.
Save farshidtz/face298c1ad258ca290414a1714a9537 to your computer and use it in GitHub Desktop.
{
"@context": [
"https://www.w3.org/2019/wot/td/v1",
{
"tdd": "https://www.w3.org/2021/wot/discovery#"
}
],
"@type": "tdd:Directory",
"id": "urn:uuid:262bd21d-8c74-4ba6-a2b5-9a2da6061b0c",
"security": "basic_sc",
"securityDefinitions": {
"basic_sc": {
"in": "header",
"scheme": "basic"
}
},
"tdd:registration": {
"tdd:created": "2021-01-19T17:02:00Z",
"tdd:expires": "2021-01-19T17:03:00Z",
"tdd:id": "urn:uuid:262bd21d-8c74-4ba6-a2b5-9a2da6061b0c",
"tdd:modified": "2021-01-19T17:02:00Z",
"tdd:ttl": 60
},
"title": "Example TD with TDD extensions"
}
@farshidtz
Copy link
Author

farshidtz commented Jan 20, 2021

@type can be omitted. Set to Link for linking to a TD hosted elsewhere and Directory for TD of a directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment