|
25 | 25 | "paths": {
|
26 | 26 | "/product-index/{product-identifier}": {
|
27 | 27 | "get": {
|
28 |
| - "description": "Access the TEA Index for the supplied product identifier", |
| 28 | + "description": "Returns the corresponding leafs for a given TEA Product Identifier", |
29 | 29 | "operationId": "getTeaIndex",
|
30 | 30 | "parameters": [
|
31 | 31 | {
|
|
40 | 40 | ],
|
41 | 41 | "responses": {
|
42 | 42 | "200": {
|
43 |
| - "description": "Requested TEA Index found and returned", |
| 43 | + "description": "Requested Product TEA Index found and returned", |
44 | 44 | "content": {
|
45 | 45 | "application/json": {
|
46 | 46 | "schema": {
|
|
64 | 64 | ]
|
65 | 65 | }
|
66 | 66 | ]
|
67 |
| - |
| 67 | + |
68 | 68 | }
|
69 | 69 | }
|
70 | 70 | }
|
71 | 71 | },
|
72 |
| - |
| 72 | + |
73 | 73 | "404": {
|
74 | 74 | "$ref": "#/components/responses/404-object-by-id-not-found"
|
75 | 75 | }
|
76 |
| - |
| 76 | + |
77 | 77 | },
|
78 | 78 | "tags": [
|
79 |
| - "TEA Index" |
| 79 | + "TEA Product Index" |
| 80 | + ] |
| 81 | + }, |
| 82 | + "patch": { |
| 83 | + "description": "Update an existing TEA Product Index entry", |
| 84 | + "operationId": "updateTeaIndex", |
| 85 | + "parameters": [ |
| 86 | + { |
| 87 | + "$ref": "#/components/parameters/product-identifier" |
| 88 | + } |
| 89 | + ], |
| 90 | + "requestBody": { |
| 91 | + "required": true, |
| 92 | + "content": { |
| 93 | + "application/json": { |
| 94 | + "schema": { |
| 95 | + "type": "object", |
| 96 | + "properties": { |
| 97 | + "product-name": { |
| 98 | + "type": "string" |
| 99 | + } |
| 100 | + }, |
| 101 | + "required": [ |
| 102 | + "product-name" |
| 103 | + ] |
| 104 | + } |
| 105 | + } |
| 106 | + } |
| 107 | + }, |
| 108 | + "responses": { |
| 109 | + "200": { |
| 110 | + "description": "TEA Index entry updated successfully", |
| 111 | + "content": { |
| 112 | + "application/json": { |
| 113 | + "schema": { |
| 114 | + "$ref": "#/components/schemas/tea-product-index" |
| 115 | + } |
| 116 | + } |
| 117 | + } |
| 118 | + }, |
| 119 | + "400": { |
| 120 | + "description": "Invalid request body", |
| 121 | + "content": { |
| 122 | + "application/json": {} |
| 123 | + } |
| 124 | + }, |
| 125 | + "404": { |
| 126 | + "$ref": "#/components/responses/404-object-by-id-not-found" |
| 127 | + } |
| 128 | + }, |
| 129 | + "tags": [ |
| 130 | + "TEA Product Index" |
| 131 | + ] |
| 132 | + } |
| 133 | + }, |
| 134 | + "/product-index": { |
| 135 | + "post": { |
| 136 | + "description": "Create TEA Product Index entry for the supplied product identifier", |
| 137 | + "operationId": "createTeaIndex", |
| 138 | + "parameters": [ |
| 139 | + { |
| 140 | + "$ref": "#/components/parameters/product-identifier" |
| 141 | + } |
| 142 | + ], |
| 143 | + "requestBody": { |
| 144 | + "required": true, |
| 145 | + "content": { |
| 146 | + "application/json": { |
| 147 | + "schema": { |
| 148 | + "$ref": "#/components/schemas/tea-product-index" |
| 149 | + } |
| 150 | + } |
| 151 | + } |
| 152 | + }, |
| 153 | + "responses": { |
| 154 | + "201": { |
| 155 | + "description": "TEA Index entry created successfully", |
| 156 | + "content": { |
| 157 | + "application/json": { |
| 158 | + "schema": { |
| 159 | + "$ref": "#/components/schemas/tea-product-index" |
| 160 | + } |
| 161 | + } |
| 162 | + } |
| 163 | + }, |
| 164 | + "400": { |
| 165 | + "description": "Invalid request body", |
| 166 | + "content": { |
| 167 | + "application/json": {} |
| 168 | + } |
| 169 | + } |
| 170 | + }, |
| 171 | + "tags": [ |
| 172 | + "TEA Product Index" |
80 | 173 | ]
|
81 | 174 | }
|
82 | 175 | },
|
|
150 | 243 | },
|
151 | 244 | "product-name": {
|
152 | 245 | "type": "string"
|
153 |
| - }, |
154 |
| - "product-version": { |
155 |
| - "type": "string" |
156 | 246 | }
|
157 | 247 | },
|
158 |
| - "reqiured": [ |
| 248 | + "required": [ |
159 | 249 | "uuid",
|
160 |
| - "product-name", |
161 |
| - "product-version" |
| 250 | + "product-name" |
162 | 251 | ]
|
163 | 252 | },
|
164 | 253 | "tea-leaf": {
|
|
177 | 266 | "type": "string",
|
178 | 267 | "format": "date-time"
|
179 | 268 | },
|
180 |
| - "prerelease": { |
| 269 | + "pre-release": { |
181 | 270 | "type": "boolean"
|
182 | 271 | },
|
183 | 272 | "tea-collection-uuid": {
|
184 | 273 | "$ref": "#/components/schemas/type-uuid"
|
185 | 274 | }
|
186 | 275 | },
|
187 |
| - "reqiured": [ |
| 276 | + "required": [ |
188 | 277 | "uuid",
|
189 | 278 | "product-name",
|
190 | 279 | "product-version",
|
191 | 280 | "release-date",
|
192 |
| - "prerelease", |
| 281 | + "pre-release", |
193 | 282 | "tea-collection-uuid"
|
194 | 283 | ]
|
195 | 284 | },
|
|
223 | 312 | "minItems": 1
|
224 | 313 | }
|
225 | 314 | },
|
226 |
| - "reqiured": [ |
| 315 | + "required": [ |
227 | 316 | "uuid",
|
228 | 317 | "product-name",
|
229 | 318 | "product-version",
|
|
255 | 344 | "minItems": 1
|
256 | 345 | }
|
257 | 346 | },
|
258 |
| - "reqiured": [ |
| 347 | + "required": [ |
259 | 348 | "uuid",
|
260 | 349 | "name",
|
261 | 350 | "type",
|
|
291 | 380 | "format": "uri"
|
292 | 381 | }
|
293 | 382 | },
|
294 |
| - "reqiured": [ |
| 383 | + "required": [ |
295 | 384 | "uuid",
|
296 | 385 | "description",
|
297 | 386 | "mime_type",
|
298 | 387 | "artifact_url",
|
299 | 388 | "artifact_size_in_bytes",
|
300 |
| - "artifact_checksum" |
| 389 | + "artifact_checksum" |
301 | 390 | ]
|
302 | 391 | },
|
303 | 392 | "type-author": {
|
|
531 | 620 | "security": [],
|
532 | 621 | "tags": [
|
533 | 622 | "TEA Collection",
|
534 |
| - "TEA Index", |
| 623 | + "TEA Product Index", |
535 | 624 | "TEA Leaf"
|
536 | 625 | ],
|
537 | 626 | "externalDocs": {
|
|
0 commit comments