|
60 | 60 | "operationId": "listTeaProducts", |
61 | 61 | "parameters": [ |
62 | 62 | { |
63 | | - "$ref": "#/components/parameters/standard_pagination" |
| 63 | + "$ref": "#/components/stdparameters/standard_pagination" |
64 | 64 | } |
65 | 65 | ], |
66 | 66 | "responses": { |
|
84 | 84 | "operationId": "getTeaLeaf", |
85 | 85 | "parameters": [ |
86 | 86 | { |
87 | | - "$ref": "#/components/parameters/tea_leaf_identifier" |
| 87 | + "$ref": "#/components/stdparameters/tea_leaf_identifier" |
88 | 88 | } |
89 | 89 | ], |
90 | 90 | "responses": { |
|
113 | 113 | "operationId": "getTeaCollection", |
114 | 114 | "parameters": [ |
115 | 115 | { |
116 | | - "$ref": "#/components/parameters/tea_collection_identifier" |
| 116 | + "$ref": "#/components/stdparameters/tea_collection_identifier" |
117 | 117 | } |
118 | 118 | ], |
119 | 119 | "responses": { |
|
140 | 140 | "webhooks": {}, |
141 | 141 | "components": { |
142 | 142 | "schemas": { |
| 143 | + "type_identifier" : { |
| 144 | + "type": "object", |
| 145 | + "description": "Declaration of an identifier", |
| 146 | + "properties": { |
| 147 | + "idtype": { |
| 148 | + "description": "Identifier types", |
| 149 | + "enum": [ |
| 150 | + "tei", |
| 151 | + "purl", |
| 152 | + "cpe" |
| 153 | + ], |
| 154 | + "default": "tei" |
| 155 | + }, |
| 156 | + "idvalue": { |
| 157 | + "description": "Value of the identifier", |
| 158 | + "type": "string" |
| 159 | + } |
| 160 | + } |
| 161 | + }, |
143 | 162 | "base_product_fields": { |
144 | 163 | "type": "object", |
145 | 164 | "properties": { |
146 | 165 | "product_name": { |
147 | | - "type": "string" |
148 | | - }, |
149 | | - "barcode": { |
150 | | - "type": "string", |
151 | | - "description": "Barcode" |
152 | | - }, |
153 | | - "sku": { |
154 | 166 | "type": "string", |
155 | | - "description": "Product SKU" |
| 167 | + "description": "Product name in free text." |
156 | 168 | }, |
157 | | - "vendor_uuid": { |
| 169 | + "uuid": { |
158 | 170 | "$ref": "#/components/schemas/type_uuid", |
159 | | - "description": "Vendor UUID" |
| 171 | + "description": "UUID" |
160 | 172 | }, |
161 | | - "purl": { |
162 | | - "type": "string", |
163 | | - "description": "Package URL (PURL)" |
| 173 | + "identifiers": { |
| 174 | + "type": "array", |
| 175 | + "items": { |
| 176 | + "$ref": "#/components/schemas/type_identifier" |
| 177 | + }, |
| 178 | + "description": "Array of identifiers for this product (tei, cpe, purl)" |
164 | 179 | } |
165 | 180 | } |
166 | 181 | }, |
|
230 | 245 | { |
231 | 246 | "type": "object", |
232 | 247 | "properties": { |
233 | | - "identifier": { |
234 | | - "$ref": "#/components/schemas/type_uuid" |
235 | | - }, |
236 | 248 | "leaf_references": { |
237 | 249 | "type": "array", |
238 | 250 | "items": { |
|
591 | 603 | "content": { |
592 | 604 | "application/json": {} |
593 | 605 | } |
| 606 | + }, |
| 607 | + "standard_errors": { |
| 608 | + "400": { |
| 609 | + "description": "Invalid request body", |
| 610 | + "content": { |
| 611 | + "application/json": {} |
| 612 | + } |
| 613 | + }, |
| 614 | + "401": { |
| 615 | + "$ref": "#/components/responses/401-unauthorized" |
| 616 | + }, |
| 617 | + "404": { |
| 618 | + "$ref": "#/components/responses/404-object-by-id-not-found" |
| 619 | + } |
| 620 | + }, |
| 621 | + "standard_delete": { |
| 622 | + "204": { |
| 623 | + "description": "Resource successfully deleted" |
| 624 | + } |
594 | 625 | } |
595 | 626 | }, |
596 | 627 | "parameters": { |
|
718 | 749 | } |
719 | 750 | ] |
720 | 751 | }, |
721 | | - "responses": { |
722 | | - "standard_errors": { |
723 | | - "400": { |
724 | | - "description": "Invalid request body", |
725 | | - "content": { |
726 | | - "application/json": {} |
727 | | - } |
728 | | - }, |
729 | | - "401": { |
730 | | - "$ref": "#/components/responses/401-unauthorized" |
731 | | - }, |
732 | | - "404": { |
733 | | - "$ref": "#/components/responses/404-object-by-id-not-found" |
734 | | - } |
735 | | - }, |
736 | | - "standard_delete": { |
737 | | - "204": { |
738 | | - "description": "Resource successfully deleted" |
739 | | - } |
740 | | - } |
741 | | - }, |
742 | | - "parameters": { |
743 | | - "standard_pagination": { |
744 | | - "page_offset": { |
745 | | - "$ref": "#/components/parameters/page-offset" |
746 | | - }, |
747 | | - "page_size": { |
748 | | - "$ref": "#/components/parameters/page-size" |
749 | | - } |
750 | | - } |
751 | | - }, |
752 | 752 | "operations": { |
753 | 753 | "standard_delete": { |
754 | 754 | "responses": { |
|
0 commit comments