-
Notifications
You must be signed in to change notification settings - Fork 214
/
some-example.td.json
53 lines (53 loc) · 1.27 KB
/
some-example.td.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"@context": [
"https://www.w3.org/2022/wot/td/v1.1",
{
"ditto": "https://www.eclipse.dev/ditto/ctx",
"ace": "http://www.example.org/ace-security#"
}
],
"id": "urn:org.eclipse.ditto:333-WoTLamp-1234",
"title": "MyLampThing",
"titles": {
"de": "Mein Lampen Ding"
},
"securityDefinitions": {
"basic_sc": {"scheme": "basic", "in": "header"},
"ace_sc": {"scheme": "ace:ACESecurityScheme", "description": "Here be dragons", "ace:custom":"foobar!"}
},
"security": "basic_sc",
"base": "https://ditto.eclipseprojects.io/api/2/things/org.eclipse.ditto:333-WoTLamp-1234",
"properties": {
"status": {
"type": "string",
"forms": [{
"href": "/attributes/status",
"op": [
"readproperty",
"writeproperty",
"observeproperty"
]
}]
}
},
"actions": {
"toggle": {
"forms": [{"href": "/inbox/messages/toggle"}]
}
},
"events":{
"overheating":{
"data": {"type": "string"},
"forms": [{
"href": "/outbox/messages/overheating",
"subprotocol": "sse"
}]
}
},
"links": [{
"rel": "service-doc",
"href": "https://eclipse.dev/ditto/some-pdf.pdf",
"type": "application/pdf",
"hreflang" : "de-CH-1996"
}]
}