-
Notifications
You must be signed in to change notification settings - Fork 2
/
http-simple-calculator-thing.td.jsonld
130 lines (130 loc) · 2.59 KB
/
http-simple-calculator-thing.td.jsonld
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
"@context": [
"https://www.w3.org/2019/wot/td/v1",
"https://www.w3.org/2022/wot/td/v1.1",
{
"@language": "en"
}
],
"@type": "Thing",
"title": "http-express-calculator-simple",
"description": "Calculator Thing",
"securityDefinitions": {
"nosec_sc": {
"scheme": "nosec"
}
},
"security": [
"nosec_sc"
],
"base": "http://localhost:3000/http-express-calculator-simple/",
"properties": {
"result": {
"type": "number",
"readOnly": true,
"writeOnly": false,
"observable": true,
"forms": [
{
"href": "properties/result",
"contentType": "application/json",
"op": [
"readproperty"
]
},
{
"href": "properties/result/observe",
"contentType": "application/json",
"op": [
"observeproperty",
"unobserveproperty"
],
"subprotocol": "sse"
}
]
},
"lastChange": {
"type": "string",
"format": "date-time",
"readOnly": true,
"writeOnly": false,
"observable": true,
"forms": [
{
"href": "properties/lastChange",
"contentType": "application/json",
"op": [
"readproperty"
]
},
{
"href": "properties/lastChange/observe",
"contentType": "application/json",
"op": [
"observeproperty",
"unobserveproperty"
],
"subprotocol": "sse"
}
]
}
},
"actions": {
"add": {
"input": {
"type": "number"
},
"output": {
"type": "number"
},
"idempotent": false,
"safe": false,
"forms": [
{
"href": "actions/add",
"contentType": "application/json",
"op": [
"invokeaction"
]
}
]
},
"subtract": {
"input": {
"type": "number"
},
"output": {
"type": "number"
},
"idempotent": false,
"safe": false,
"forms": [
{
"href": "actions/subtract",
"contentType": "application/json",
"op": [
"invokeaction"
]
}
]
}
},
"events": {
"update": {
"data": {
"type": "object"
},
"forms": [
{
"href": "events/update",
"contentType": "application/json",
"op": [
"subscribeevent",
"unsubscribeevent"
],
"subprotocol": "sse"
}
]
}
}
}