-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtd.json
61 lines (61 loc) · 2.13 KB
/
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
54
55
56
57
58
59
60
61
{
"@context": "https://www.w3.org/2019/wot/td/v1",
"title": "TransportationThing",
"id": "urn:dev:wot:com:sofie:fcp:adapter:transportation",
"description": "Transportation Federation Adapter Thing Description model for the Food Supply Chain pilot",
"securityDefinitions": { "nosec_sc": { "scheme": "nosec"}},
"security": "nosec_sc",
"properties": {
"transports": {
"type": "array",
"readOnly": true,
"description": "The array of transport ids served from the underlying Transportation IoT platform",
"items": {
"type": "string",
"description": "The transport id in hashed/encrypted form"
},
"forms": [{
"op": "readproperty",
"href": "{BASE}/api/transports",
"contentType": "application/json"
}]
},
"transport_boxes": {
"type": "array",
"readOnly": true,
"description": "The boxes that are part (inside) the given transport at that time",
"items": {
"type": "string",
"description": "The box id"
},
"uriVariables": {
"transportId": { "type": "string", "description": "The hashed/encrypted id of the transport"}
},
"forms": [{
"op": "readproperty",
"href": "{BASE}/api/transport/{transportId}/boxes",
"contentType": "application/json"
}]
},
"transport_readings": {
"type": "object",
"readOnly": true,
"description": "The readings of the specific transport",
"properties": {
"min_temperature": { "type": "number" },
"avg_temperature": { "type": "number" },
"max_temperature": { "type": "number" }
},
"uriVariables": {
"transportId": { "type": "string", "description": "The hashed/encrypted id of the transport"},
"start": { "type": "string", "description": "The start datetime of the readings"},
"end": { "type": "string", "description": "The end datetime of the readings"}
},
"forms": [{
"op": "readproperty",
"href": "{BASE}/api/transport/{transportId}/readings{?start,end}",
"contentType": "application/json"
}]
}
}
}