|
146 | 146 | "$ref": "#/components/parameters/tea_product_identifier"
|
147 | 147 | }
|
148 | 148 | ],
|
149 |
| - "responses": { |
150 |
| - "204": { |
151 |
| - "description": "TEA Product successfully deleted" |
152 |
| - }, |
153 |
| - "401": { "$ref": "#/components/responses/401-unauthorized" }, |
154 |
| - "404": { |
155 |
| - "$ref": "#/components/responses/404-object-by-id-not-found" |
156 |
| - } |
157 |
| - }, |
| 149 | + "$ref": "#/components/operations/standard_delete", |
158 | 150 | "tags": [
|
159 | 151 | "TEA Product"
|
160 |
| - ], |
161 |
| - "security": [ |
162 |
| - { |
163 |
| - "bearerAuth": [] |
164 |
| - }, |
165 |
| - { |
166 |
| - "basicAuth": [] |
167 |
| - } |
168 | 152 | ]
|
169 | 153 | }
|
170 | 154 | },
|
|
174 | 158 | "operationId": "listTeaProducts",
|
175 | 159 | "parameters": [
|
176 | 160 | {
|
177 |
| - "$ref": "#/components/parameters/page-offset" |
178 |
| - }, |
179 |
| - { |
180 |
| - "$ref": "#/components/parameters/page-size" |
181 |
| - }, |
182 |
| - { |
183 |
| - "$ref": "#/components/parameters/purl" |
184 |
| - }, |
185 |
| - { |
186 |
| - "$ref": "#/components/parameters/barcode" |
187 |
| - }, |
188 |
| - { |
189 |
| - "$ref": "#/components/parameters/sku" |
190 |
| - }, |
191 |
| - { |
192 |
| - "$ref": "#/components/parameters/vendor_uuid" |
| 161 | + "$ref": "#/components/parameters/standard_pagination" |
193 | 162 | }
|
194 | 163 | ],
|
195 | 164 | "responses": {
|
196 | 165 | "200": {
|
197 |
| - "description": "List of TEA Products retrieved successfully", |
| 166 | + "description": "List retrieved successfully", |
198 | 167 | "content": {
|
199 | 168 | "application/json": {
|
200 | 169 | "schema": {
|
201 |
| - "type": "object", |
202 |
| - "properties": { |
203 |
| - "pagination": { |
204 |
| - "$ref": "#/components/schemas/type_pagination_details" |
205 |
| - }, |
206 |
| - "items": { |
207 |
| - "type": "array", |
208 |
| - "items": { |
209 |
| - "$ref": "#/components/schemas/tea_product" |
210 |
| - } |
211 |
| - } |
212 |
| - }, |
213 |
| - "required": [ |
214 |
| - "pagination", |
215 |
| - "items" |
216 |
| - ] |
| 170 | + "$ref": "#/components/schemas/paginated_product_list" |
217 | 171 | }
|
218 | 172 | }
|
219 | 173 | }
|
220 |
| - } |
221 |
| - }, |
222 |
| - "tags": [ |
223 |
| - "TEA Product" |
224 |
| - ] |
| 174 | + }, |
| 175 | + "$ref": "#/components/responses/standard_errors" |
| 176 | + } |
225 | 177 | },
|
226 | 178 | "post": {
|
227 | 179 | "description": "Create TEA Product entry for the supplied product identifier",
|
|
523 | 475 | "$ref": "#/components/parameters/tea_leaf_identifier"
|
524 | 476 | }
|
525 | 477 | ],
|
526 |
| - "responses": { |
527 |
| - "204": { |
528 |
| - "description": "TEA Leaf successfully deleted" |
529 |
| - }, |
530 |
| - "401": { "$ref": "#/components/responses/401-unauthorized" }, |
531 |
| - "404": { |
532 |
| - "$ref": "#/components/responses/404-object-by-id-not-found" |
533 |
| - } |
534 |
| - }, |
| 478 | + "$ref": "#/components/operations/standard_delete", |
535 | 479 | "tags": [
|
536 | 480 | "TEA Leaf"
|
537 |
| - ], |
538 |
| - "security": [ |
539 |
| - { |
540 |
| - "bearerAuth": [] |
541 |
| - }, |
542 |
| - { |
543 |
| - "basicAuth": [] |
544 |
| - } |
545 | 481 | ]
|
546 | 482 | }
|
547 | 483 | },
|
|
930 | 866 | "$ref": "#/components/parameters/tea_collection_identifier"
|
931 | 867 | }
|
932 | 868 | ],
|
933 |
| - "responses": { |
934 |
| - "204": { |
935 |
| - "description": "TEA Collection successfully deleted" |
936 |
| - }, |
937 |
| - "401": { "$ref": "#/components/responses/401-unauthorized" }, |
938 |
| - "404": { |
939 |
| - "$ref": "#/components/responses/404-object-by-id-not-found" |
940 |
| - } |
941 |
| - }, |
| 869 | + "$ref": "#/components/operations/standard_delete", |
942 | 870 | "tags": [
|
943 | 871 | "TEA Collection"
|
944 |
| - ], |
945 |
| - "security": [ |
946 |
| - { |
947 |
| - "bearerAuth": [] |
948 |
| - }, |
949 |
| - { |
950 |
| - "basicAuth": [] |
951 |
| - } |
952 | 872 | ]
|
953 | 873 | }
|
954 | 874 | }
|
|
1514 | 1434 | "type": "http",
|
1515 | 1435 | "scheme": "basic"
|
1516 | 1436 | }
|
| 1437 | + }, |
| 1438 | + "security_requirements": { |
| 1439 | + "standard_auth": [ |
| 1440 | + { |
| 1441 | + "bearerAuth": [] |
| 1442 | + }, |
| 1443 | + { |
| 1444 | + "basicAuth": [] |
| 1445 | + } |
| 1446 | + ] |
| 1447 | + }, |
| 1448 | + "responses": { |
| 1449 | + "standard_errors": { |
| 1450 | + "400": { |
| 1451 | + "description": "Invalid request body", |
| 1452 | + "content": { |
| 1453 | + "application/json": {} |
| 1454 | + } |
| 1455 | + }, |
| 1456 | + "401": { |
| 1457 | + "$ref": "#/components/responses/401-unauthorized" |
| 1458 | + }, |
| 1459 | + "404": { |
| 1460 | + "$ref": "#/components/responses/404-object-by-id-not-found" |
| 1461 | + } |
| 1462 | + }, |
| 1463 | + "standard_delete": { |
| 1464 | + "204": { |
| 1465 | + "description": "Resource successfully deleted" |
| 1466 | + } |
| 1467 | + } |
| 1468 | + }, |
| 1469 | + "parameters": { |
| 1470 | + "standard_pagination": { |
| 1471 | + "page_offset": { |
| 1472 | + "$ref": "#/components/parameters/page-offset" |
| 1473 | + }, |
| 1474 | + "page_size": { |
| 1475 | + "$ref": "#/components/parameters/page-size" |
| 1476 | + } |
| 1477 | + } |
| 1478 | + }, |
| 1479 | + "operations": { |
| 1480 | + "standard_delete": { |
| 1481 | + "responses": { |
| 1482 | + "$ref": "#/components/responses/standard_delete" |
| 1483 | + }, |
| 1484 | + "security": { |
| 1485 | + "$ref": "#/components/security_requirements/standard_auth" |
| 1486 | + } |
| 1487 | + } |
1517 | 1488 | }
|
1518 | 1489 | },
|
1519 | 1490 | "security": [
|
|
0 commit comments