Skip to content

Commit

Permalink
Merge branch 'feature/PI-762-ui_poc_for_cpm' into release/2025-02-12
Browse files Browse the repository at this point in the history
  • Loading branch information
megan-bower4 committed Feb 12, 2025
2 parents 1dd8840 + f09b602 commit 431a93b
Show file tree
Hide file tree
Showing 23 changed files with 6,650 additions and 0 deletions.
80 changes: 80 additions & 0 deletions infrastructure/swagger/05_paths.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,43 @@ paths:
- app-level0: []

/ProductTeam:
options:
operationId: createproductteamcors
summary: Create a Product Team resource (OPTIONS)
responses:
"400":
$ref: "#/components/responses/BadRequest"
"200":
description: "200 response"
headers:
Access-Control-Allow-Origin:
schema:
type: "string"
Access-Control-Allow-Methods:
schema:
type: "string"
Access-Control-Allow-Headers:
schema:
type: "string"
content:
application/json:
schema:
$ref: "#/components/schemas/Empty"
x-amazon-apigateway-integration:
responses:
default:
statusCode: "200"
responseParameters:
method.response.header.Access-Control-Allow-Methods: "'GET,OPTIONS,POST'"
method.response.header.Access-Control-Allow-Headers: "'apikey,authorization,content-type,version'"
method.response.header.Access-Control-Allow-Origin: "'*'"
requestTemplates:
application/json: '{"statusCode": 200}'
passthroughBehavior: "never"
type: "mock"
security:
- ${authoriser_name}: []
- app-level0: []
post:
operationId: createproductteam
summary: Create a Product Team resource (POST)
Expand All @@ -67,6 +104,8 @@ paths:
$ref: "#/components/responses/UnprocessableContent"
parameters:
- $ref: "#/components/parameters/HeaderVersion"
- $ref: "#/components/parameters/HeaderAuthorization"
- $ref: "#/components/parameters/HeaderApikey"
- $ref: "#/components/parameters/HeaderRequestId"
- $ref: "#/components/parameters/HeaderCorrelationId"
x-amazon-apigateway-integration:
Expand Down Expand Up @@ -155,6 +194,45 @@ paths:
- app-level0: []

/ProductTeam/{product_team_id}/Product:
options:
operationId: createproductcors
summary: Create a Product resource (OPTIONS)
parameters:
- $ref: "#/components/parameters/ProductTeamId"
responses:
"400":
$ref: "#/components/responses/BadRequest"
"200":
description: "200 response"
headers:
Access-Control-Allow-Origin:
schema:
type: "string"
Access-Control-Allow-Methods:
schema:
type: "string"
Access-Control-Allow-Headers:
schema:
type: "string"
content:
application/json:
schema:
$ref: "#/components/schemas/Empty"
x-amazon-apigateway-integration:
responses:
default:
statusCode: "200"
responseParameters:
method.response.header.Access-Control-Allow-Methods: "'GET,OPTIONS,POST'"
method.response.header.Access-Control-Allow-Headers: "'apikey,authorization,content-type,version'"
method.response.header.Access-Control-Allow-Origin: "'*'"
requestTemplates:
application/json: '{"statusCode": 200}'
passthroughBehavior: "never"
type: "mock"
security:
- ${authoriser_name}: []
- app-level0: []
post:
operationId: createproductendpoint
summary: Create a Product resource (POST)
Expand All @@ -167,6 +245,8 @@ paths:
parameters:
- $ref: "#/components/parameters/ProductTeamId"
- $ref: "#/components/parameters/HeaderVersion"
- $ref: "#/components/parameters/HeaderAuthorization"
- $ref: "#/components/parameters/HeaderApikey"
- $ref: "#/components/parameters/HeaderRequestId"
- $ref: "#/components/parameters/HeaderCorrelationId"
requestBody:
Expand Down
2 changes: 2 additions & 0 deletions infrastructure/swagger/07_components--schemas--domain.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
components:
schemas:
Empty:
type: "object"
ErrorResponse:
type: object
properties:
Expand Down
8 changes: 8 additions & 0 deletions infrastructure/swagger/08_components--schemas--other.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,11 @@ components:
HeaderCorrelationId:
type: string
example: 11C46F5F-CDEF-4865-94B2-0EE0EDCC26DA

HeaderAuthorization:
type: string
example: letmein

HeaderApikey:
type: string
example: GEDT124JF9OP
10 changes: 10 additions & 0 deletions infrastructure/swagger/09_components--headers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,13 @@ components:
required: true
schema:
$ref: "#/components/schemas/HeaderCorrelationId"
HeaderAuthorization:
in: header
name: authorization
schema:
$ref: "#/components/schemas/HeaderAuthorization"
HeaderApikey:
in: header
name: apikey
schema:
$ref: "#/components/schemas/HeaderApikey"
10 changes: 10 additions & 0 deletions infrastructure/swagger/12_components--responses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ components:
application/json:
schema:
$ref: "#/components/schemas/CPMProductTeamResponse"
headers:
Access-Control-Allow-Origin:
schema:
type: string
example: "*"
EPRProductTeamCreate:
description: Create EPR ProductTeam operation successful
content:
Expand Down Expand Up @@ -139,6 +144,11 @@ components:
application/json:
schema:
$ref: "#/components/schemas/CPMProductResponse"
headers:
Access-Control-Allow-Origin:
schema:
type: string
example: "*"
ProductRead:
description: Read Product operation successful
content:
Expand Down
Loading

0 comments on commit 431a93b

Please sign in to comment.