-
Notifications
You must be signed in to change notification settings - Fork 214
/
wot-thingDescription.yml
167 lines (167 loc) · 3.58 KB
/
wot-thingDescription.yml
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# Copyright (c) 2022 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# http://www.eclipse.org/legal/epl-2.0
#
# SPDX-License-Identifier: EPL-2.0
type: object
desciption: A WoT Thing Description version 1.1
properties:
'@context':
oneOf:
- type: array
items:
type: string
enum:
- https://www.w3.org/2019/wot/td/v1
- http://www.w3.org/ns/td
- https://www.w3.org/2022/wot/td/v1.1
- type: string
enum:
- https://www.w3.org/2019/wot/td/v1
- http://www.w3.org/ns/td
- https://www.w3.org/2022/wot/td/v1.1
example:
- "https://www.w3.org/2022/wot/td/v1.1"
title:
type: string
example: "My fancy Thing"
titles:
type: object
additionalProperties:
type: string
description:
type: string
example: "Does fancy stuff with IoT"
descriptions:
type: object
additionalProperties:
type: string
'@type':
oneOf:
- type: string
- type: array
items:
type: string
example: "Thing"
id:
type: string
example: "urn:org.eclipse.ditto:my-fancy-thing"
base:
type: string
format: iri-reference
example: "https://ditto.eclipseprojects.io/api/2/org.eclipse.ditto:my-fancy-thing"
version:
type: object
properties:
model:
type: string
instance:
type: string
required:
- instance
example:
model: "1.0.0"
instance: "1.0.0"
links:
type: array
items:
type: object
properties:
href:
type: string
format: iri-reference
rel:
type: string
type:
type: string
anchor:
type: string
required:
- href
additionalProperties: true
security:
oneOf:
- type: string
- type: array
items:
type: string
example: "basic_sc"
securityDefinitions:
type: object
additionalProperties:
type: object
example:
basic_sc:
in: "header"
scheme: "basic"
support:
type: string
format: iri-reference
example: "https://www.eclipse.org/ditto/"
created:
type: string
format: date-time
modified:
type: string
format: date-time
forms:
type: array
items:
type: object
properties:
op:
type: string
href:
type: string
htv:methodName:
type: string
contentType:
type: string
additionalResponses:
type: array
items:
type: object
properties:
success:
type: boolean
schema:
type: string
properties:
type: object
additionalProperties:
type: object
actions:
type: object
additionalProperties:
type: object
events:
type: object
additionalProperties:
type: object
uriVariables:
type: object
additionalProperties:
type: object
schemaDefinitions:
type: object
additionalProperties:
type: object
profile:
oneOf:
- type: array
items:
type: string
format: iri-reference
- type: string
format: iri-reference
required:
- '@context'
- title
- security
- securityDefinitions
additionalProperties: true