Skip to content

Commit 8cf680a

Browse files
committed
Refactor Vodlist to use new license text etc
1 parent 4874e22 commit 8cf680a

File tree

1 file changed

+125
-0
lines changed

1 file changed

+125
-0
lines changed
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"title": "VOD List",
5+
"version": "2019-05-16",
6+
"license": {
7+
"name": "OCF Data Model License",
8+
"url": "https://github.com/openconnectivityfoundation/core/blob/e28a9e0a92e17042ba3e83661e4c0fbce8bdc4ba/LICENSE.md",
9+
"x-copyright": "Copyright 2019 Open Connectivity Foundation, Inc. All rights reserved."
10+
},
11+
"termsOfService": "https://openconnectivityfoundation.github.io/core/DISCLAIMER.md"
12+
},
13+
"schemes": ["http"],
14+
"consumes": ["application/json"],
15+
"produces": ["application/json"],
16+
"paths": {
17+
"/VODListResURI" : {
18+
"get": {
19+
"description": "This Resource describes the VODs that have been onboarded on the Bridge Platform.\n",
20+
"parameters": [
21+
{"$ref": "#/parameters/interface"}
22+
],
23+
"responses": {
24+
"200": {
25+
"description" : "Example response payload",
26+
"x-example":
27+
{
28+
"rt": ["oic.r.vodlist"],
29+
"vods": [
30+
{
31+
"n": "Smoke sensor",
32+
"di": "54919CA5-4101-4AE4-595B-353C51AA1234",
33+
"econame": "Z-Wave"
34+
},
35+
{
36+
"n": "Thermostat",
37+
"di": "54919CA5-4101-4AE4-595B-353C51AA5678",
38+
"econame": "Zigbee"
39+
}
40+
]
41+
},
42+
"schema": { "$ref": "#/definitions/vodlist" }
43+
}
44+
}
45+
}
46+
}
47+
},
48+
"parameters": {
49+
"interface" : {
50+
"in" : "query",
51+
"name" : "if",
52+
"type" : "string",
53+
"enum" : ["oic.if.r", "oic.if.baseline"]
54+
}
55+
},
56+
"definitions": {
57+
"vodentry" : {
58+
"description": "Information for a VOD created by the Bridge",
59+
"type": "object",
60+
"properties": {
61+
"n": {
62+
"$ref": "https://openconnectivityfoundation.github.io/core/schemas/oic.common.properties.core-schema.json#/definitions/n"
63+
},
64+
"di" : {
65+
"$ref": "https://openconnectivityfoundation.github.io/core/schemas/oic.types-schema.json#/definitions/uuid"
66+
},
67+
"econame": {
68+
"description": "Ecosystem Name of the Bridged Device which is exposed by this VOD",
69+
"type": "string",
70+
"enum": [ "BLE", "oneM2M", "UPlus", "Zigbee", "Z-Wave" ],
71+
"readOnly": true
72+
}
73+
},
74+
"required": ["n", "di", "econame"]
75+
},
76+
"vodlist": {
77+
"type": "object",
78+
"properties": {
79+
"n": {
80+
"$ref": "https://openconnectivityfoundation.github.io/core/schemas/oic.common.properties.core-schema.json#/definitions/n"
81+
},
82+
"rt" : {
83+
"description": "Resource Type",
84+
"items": {
85+
"maxLength": 64,
86+
"type": "string",
87+
"enum": ["oic.r.vodlist"]
88+
},
89+
"minItems": 1,
90+
"uniqueItems": true,
91+
"readOnly": true,
92+
"type": "array"
93+
},
94+
"id": {
95+
"$ref": "https://openconnectivityfoundation.github.io/core/schemas/oic.common.properties.core-schema.json#/definitions/id"
96+
},
97+
"if" : {
98+
"description": "The OCF Interface set supported by this Resource",
99+
"items": {
100+
"enum": [
101+
"oic.if.baseline",
102+
"oic.if.r"
103+
],
104+
"type": "string"
105+
},
106+
"minItems": 2,
107+
"uniqueItems": true,
108+
"readOnly": true,
109+
"type": "array"
110+
},
111+
"vods": {
112+
"description": "Array of information per VOD created by the Bridge",
113+
"type": "array",
114+
"minItems": 0,
115+
"uniqueItems": true,
116+
"readOnly": true,
117+
"items": {
118+
"$ref": "#/definitions/vodentry"
119+
}
120+
}
121+
},
122+
"required": ["vods"]
123+
}
124+
}
125+
}

0 commit comments

Comments
 (0)