Skip to content

Commit 93a653e

Browse files
authored
Merge pull request #493 from NHSDigital/release/2025-02-12
Release/2025 02 12
2 parents 02700b9 + 949a2ca commit 93a653e

29 files changed

+6663
-2
lines changed

.github/workflows/merge.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ jobs:
7070
id: slack
7171
uses: slackapi/[email protected]
7272
with:
73+
webhook-type: webhook-trigger
7374
payload: |
7475
{
7576
"tag": "${{ needs.make-tag.outputs.tag}}",

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 2025-02-12
4+
- [PI-762] UI Demo POC
5+
36
## 2025-02-07
47
- [PI-746] Deactivate a Product
58
- [PI-765] Feature test for create ProductTeam endpoint request containing an empty key_value

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025.02.07
1+
2025.02.12

changelog/2025-02-12.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- [PI-762] UI Demo POC

infrastructure/swagger/05_paths.yaml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,43 @@ paths:
4949
- app-level0: []
5050

5151
/ProductTeam:
52+
options:
53+
operationId: createproductteamcors
54+
summary: Create a Product Team resource (OPTIONS)
55+
responses:
56+
"400":
57+
$ref: "#/components/responses/BadRequest"
58+
"200":
59+
description: "200 response"
60+
headers:
61+
Access-Control-Allow-Origin:
62+
schema:
63+
type: "string"
64+
Access-Control-Allow-Methods:
65+
schema:
66+
type: "string"
67+
Access-Control-Allow-Headers:
68+
schema:
69+
type: "string"
70+
content:
71+
application/json:
72+
schema:
73+
$ref: "#/components/schemas/Empty"
74+
x-amazon-apigateway-integration:
75+
responses:
76+
default:
77+
statusCode: "200"
78+
responseParameters:
79+
method.response.header.Access-Control-Allow-Methods: "'GET,OPTIONS,POST'"
80+
method.response.header.Access-Control-Allow-Headers: "'apikey,authorization,content-type,version'"
81+
method.response.header.Access-Control-Allow-Origin: "'*'"
82+
requestTemplates:
83+
application/json: '{"statusCode": 200}'
84+
passthroughBehavior: "never"
85+
type: "mock"
86+
security:
87+
- ${authoriser_name}: []
88+
- app-level0: []
5289
post:
5390
operationId: createproductteam
5491
summary: Create a Product Team resource (POST)
@@ -67,6 +104,8 @@ paths:
67104
$ref: "#/components/responses/UnprocessableContent"
68105
parameters:
69106
- $ref: "#/components/parameters/HeaderVersion"
107+
- $ref: "#/components/parameters/HeaderAuthorization"
108+
- $ref: "#/components/parameters/HeaderApikey"
70109
- $ref: "#/components/parameters/HeaderRequestId"
71110
- $ref: "#/components/parameters/HeaderCorrelationId"
72111
x-amazon-apigateway-integration:
@@ -155,6 +194,45 @@ paths:
155194
- app-level0: []
156195

157196
/ProductTeam/{product_team_id}/Product:
197+
options:
198+
operationId: createproductcors
199+
summary: Create a Product resource (OPTIONS)
200+
parameters:
201+
- $ref: "#/components/parameters/ProductTeamId"
202+
responses:
203+
"400":
204+
$ref: "#/components/responses/BadRequest"
205+
"200":
206+
description: "200 response"
207+
headers:
208+
Access-Control-Allow-Origin:
209+
schema:
210+
type: "string"
211+
Access-Control-Allow-Methods:
212+
schema:
213+
type: "string"
214+
Access-Control-Allow-Headers:
215+
schema:
216+
type: "string"
217+
content:
218+
application/json:
219+
schema:
220+
$ref: "#/components/schemas/Empty"
221+
x-amazon-apigateway-integration:
222+
responses:
223+
default:
224+
statusCode: "200"
225+
responseParameters:
226+
method.response.header.Access-Control-Allow-Methods: "'GET,OPTIONS,POST'"
227+
method.response.header.Access-Control-Allow-Headers: "'apikey,authorization,content-type,version'"
228+
method.response.header.Access-Control-Allow-Origin: "'*'"
229+
requestTemplates:
230+
application/json: '{"statusCode": 200}'
231+
passthroughBehavior: "never"
232+
type: "mock"
233+
security:
234+
- ${authoriser_name}: []
235+
- app-level0: []
158236
post:
159237
operationId: createproductendpoint
160238
summary: Create a Product resource (POST)
@@ -167,6 +245,8 @@ paths:
167245
parameters:
168246
- $ref: "#/components/parameters/ProductTeamId"
169247
- $ref: "#/components/parameters/HeaderVersion"
248+
- $ref: "#/components/parameters/HeaderAuthorization"
249+
- $ref: "#/components/parameters/HeaderApikey"
170250
- $ref: "#/components/parameters/HeaderRequestId"
171251
- $ref: "#/components/parameters/HeaderCorrelationId"
172252
requestBody:

infrastructure/swagger/07_components--schemas--domain.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
components:
33
schemas:
4+
Empty:
5+
type: "object"
46
ErrorResponse:
57
type: object
68
properties:

infrastructure/swagger/08_components--schemas--other.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,11 @@ components:
1414
HeaderCorrelationId:
1515
type: string
1616
example: 11C46F5F-CDEF-4865-94B2-0EE0EDCC26DA
17+
18+
HeaderAuthorization:
19+
type: string
20+
example: letmein
21+
22+
HeaderApikey:
23+
type: string
24+
example: GEDT124JF9OP

infrastructure/swagger/09_components--headers.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,13 @@ components:
1919
required: true
2020
schema:
2121
$ref: "#/components/schemas/HeaderCorrelationId"
22+
HeaderAuthorization:
23+
in: header
24+
name: authorization
25+
schema:
26+
$ref: "#/components/schemas/HeaderAuthorization"
27+
HeaderApikey:
28+
in: header
29+
name: apikey
30+
schema:
31+
$ref: "#/components/schemas/HeaderApikey"

infrastructure/swagger/12_components--responses.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ components:
109109
application/json:
110110
schema:
111111
$ref: "#/components/schemas/CPMProductTeamResponse"
112+
headers:
113+
Access-Control-Allow-Origin:
114+
schema:
115+
type: string
116+
example: "*"
112117
EPRProductTeamCreate:
113118
description: Create EPR ProductTeam operation successful
114119
content:
@@ -139,6 +144,11 @@ components:
139144
application/json:
140145
schema:
141146
$ref: "#/components/schemas/CPMProductResponse"
147+
headers:
148+
Access-Control-Allow-Origin:
149+
schema:
150+
type: string
151+
example: "*"
142152
ProductRead:
143153
description: Read Product operation successful
144154
content:

package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)