@@ -14,7 +14,8 @@ x-definitions:
1414tags :
1515 - name : Core Product ID Endpoints
1616 description : Create, Read and Delete Product IDs
17-
17+ - name : Options
18+ description : These exist for CORS
1819paths :
1920 /_status :
2021 get :
4445 options :
4546 operationId : createproductteamcors
4647 summary : Create a Product Team resource (OPTIONS)
48+ tags :
49+ - Options
4750 responses :
4851 " 400 " :
4952 $ref : " #/components/responses/BadRequest"
@@ -161,6 +164,8 @@ paths:
161164 options :
162165 operationId : createproductcors
163166 summary : Create a Product resource (OPTIONS)
167+ tags :
168+ - Options
164169 parameters :
165170 - $ref : " #/components/parameters/ProductTeamId"
166171 responses :
@@ -228,25 +233,69 @@ paths:
228233 security :
229234 - ${authoriser_name} : []
230235 - app-level0 : []
231- # get:
232- # operationId: searchCpmProduct
233- # summary: Retrieve all Products associated with a Product Team (GET)
234- # parameters:
235- # - $ref: "#/components/parameters/ProductTeamId"
236- # - $ref: "#/components/parameters/HeaderVersion"
237- # - $ref: "#/components/parameters/HeaderRequestId"
238- # - $ref: "#/components/parameters/HeaderCorrelationId"
239- # responses:
240- # "200":
241- # $ref: "#/components/responses/ProductSearch"
242- # "404":
243- # $ref: "#/components/responses/NotFound"
244- # x-amazon-apigateway-integration:
245- # <<: *ApiGatewayIntegration
246- # uri: ${method_searchCpmProduct}
247- # security:
248- # - ${authoriser_name}: []
249- # - app-level0: []
236+
237+ /Product :
238+ options :
239+ operationId : searchproductcors
240+ summary : Search Products (OPTIONS)
241+ tags :
242+ - Options
243+ responses :
244+ " 400 " :
245+ $ref : " #/components/responses/BadRequest"
246+ " 200 " :
247+ description : " 200 response"
248+ headers :
249+ Access-Control-Allow-Origin :
250+ schema :
251+ type : " string"
252+ Access-Control-Allow-Methods :
253+ schema :
254+ type : " string"
255+ Access-Control-Allow-Headers :
256+ schema :
257+ type : " string"
258+ content :
259+ application/json :
260+ schema :
261+ $ref : " #/components/schemas/Empty"
262+ x-amazon-apigateway-integration :
263+ responses :
264+ default :
265+ statusCode : " 200"
266+ responseParameters :
267+ method.response.header.Access-Control-Allow-Methods : " 'GET,OPTIONS'"
268+ method.response.header.Access-Control-Allow-Headers : " 'apikey,authorization,content-type,version'"
269+ method.response.header.Access-Control-Allow-Origin : " '*'"
270+ requestTemplates :
271+ application/json : ' {"statusCode": 200}'
272+ passthroughBehavior : " never"
273+ type : " mock"
274+ security :
275+ - ${authoriser_name} : []
276+ - app-level0 : []
277+ get :
278+ operationId : searchProduct
279+ summary : Retrieve all Products associated with a Product Team or Organisation (GET)
280+ tags :
281+ - Core Product ID Endpoints
282+ parameters :
283+ - $ref : " #/components/parameters/ProductTeamIdQuery"
284+ - $ref : " #/components/parameters/OrganisationCodeQuery"
285+ - $ref : " #/components/parameters/HeaderVersion"
286+ - $ref : " #/components/parameters/HeaderRequestId"
287+ - $ref : " #/components/parameters/HeaderCorrelationId"
288+ responses :
289+ " 200 " :
290+ $ref : " #/components/responses/ProductSearch"
291+ " 400 " :
292+ $ref : " #/components/responses/SearchProductBadRequest"
293+ x-amazon-apigateway-integration :
294+ << : *ApiGatewayIntegration
295+ uri : ${method_searchProduct}
296+ security :
297+ - ${authoriser_name} : []
298+ - app-level0 : []
250299
251300 /ProductTeam/{product_team_id}/Product/{product_id} :
252301 get :
0 commit comments