|
23 | 23 | } |
24 | 24 | ], |
25 | 25 | "paths": { |
26 | | - "/product/{tei_urn}": { |
| 26 | + "/product/uuid/{uuid}": { |
27 | 27 | "get": { |
28 | | - "description": "Returns the corresponding leafs for a given TEI URN", |
29 | | - "operationId": "getTeaProduct", |
| 28 | + "description": "Returns the corresponding leafs for a given product UUID.", |
| 29 | + "operationId": "getTeaProductByUuid", |
30 | 30 | "parameters": [ |
31 | 31 | { |
32 | 32 | "$ref": "#/components/parameters/tei_urn" |
|
54 | 54 | ] |
55 | 55 | } |
56 | 56 | }, |
57 | | - "/product": { |
| 57 | + "/product/type/{type_identifier}": { |
58 | 58 | "get": { |
59 | | - "description": "Returns a list of TEA Products", |
60 | | - "operationId": "listTeaProducts", |
| 59 | + "description": "Returns a list of TEA products. Note that multiple products may match.", |
| 60 | + "operationId": "ProductByIdentifier", |
61 | 61 | "parameters": [ |
| 62 | + { |
| 63 | + "name": "type_identifier", |
| 64 | + "description": "The identifier type (enum)", |
| 65 | + "in": "path", |
| 66 | + "required": true, |
| 67 | + "schema": { |
| 68 | + "$ref" : "#/components/schemas/prodid_type" |
| 69 | + } |
| 70 | + }, |
62 | 71 | { |
63 | | - "$ref": "#/components/stdparameters/standard_pagination" |
| 72 | + "name": "type_val", |
| 73 | + "description": "The actual identifier string", |
| 74 | + "in": "query", |
| 75 | + "required": true, |
| 76 | + "schema": { |
| 77 | + "type": "string" |
| 78 | + } |
64 | 79 | } |
65 | 80 | ], |
66 | 81 | "responses": { |
67 | 82 | "200": { |
68 | | - "description": "List retrieved successfully", |
| 83 | + "description": "Product retrieved successfully", |
69 | 84 | "content": { |
70 | 85 | "application/json": { |
71 | 86 | "schema": { |
|
140 | 155 | "webhooks": {}, |
141 | 156 | "components": { |
142 | 157 | "schemas": { |
| 158 | + "prodid_type": { |
| 159 | + "type": "enum", |
| 160 | + "description": "Identifier types", |
| 161 | + "enum": [ |
| 162 | + "tei", |
| 163 | + "purl", |
| 164 | + "cpe" |
| 165 | + ] |
| 166 | + }, |
143 | 167 | "type_identifier" : { |
144 | 168 | "type": "object", |
145 | 169 | "description": "Declaration of an identifier", |
146 | 170 | "properties": { |
147 | 171 | "idtype": { |
148 | | - "description": "Identifier types", |
149 | | - "enum": [ |
150 | | - "tei", |
151 | | - "purl", |
152 | | - "cpe" |
153 | | - ], |
| 172 | + "$ref": "#/components/schemas/prodid_type", |
154 | 173 | "default": "tei" |
155 | 174 | }, |
156 | 175 | "idvalue": { |
|
0 commit comments