Skip to content
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
1 change: 1 addition & 0 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ jobs:
id: slack
uses: slackapi/[email protected]
with:
webhook-type: webhook-trigger
payload: |
{
"tag": "${{ needs.make-tag.outputs.tag}}",
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 2025-02-12
- [PI-762] UI Demo POC

## 2025-02-07
- [PI-746] Deactivate a Product
- [PI-765] Feature test for create ProductTeam endpoint request containing an empty key_value
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025.02.07
2025.02.12
1 change: 1 addition & 0 deletions changelog/2025-02-12.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- [PI-762] UI Demo POC
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
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "connecting-party-manager"
version = "2025.02.07"
version = "2025.02.12"
description = "Repository for the Connecting Party Manager API and related services"
authors = ["NHS England"]
license = "LICENSE.md"
Expand Down
Loading
Loading