Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/pi 762 UI poc for cpm #480

Merged
merged 5 commits into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading