Skip to content

Commit 43a0a99

Browse files
authored
Merge pull request #539 from NHSDigital/release/2025-03-12
Release/2025 03 12
2 parents 2b5fbcc + e7f0a3c commit 43a0a99

File tree

18 files changed

+46
-65
lines changed

18 files changed

+46
-65
lines changed

.sonarcloud.properties

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
sonar.sources=.
2-
sonar.tests=.
31
sonar.cpd.exclusions=src/api/**/index.py

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
# Changelog
22

3+
## 2025-03-12
4+
- [PI-841] Remove VPC cpm-sds-etl-hscn-vpc
5+
- [PI-851] Swagger spec refinement - Part Deux
6+
- [PI-854] Fix sonarcloud runs
7+
38
## 2025-03-10
4-
- [PI-387] Add Product Team Id to search results
9+
- [PI-837] Add Product Team Id to search results
510
- [PI-843] Add Read Product to test UI
611
- [PI-764] Refine Swagger
712

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025.03.10
1+
2025.03.12

infrastructure/terraform/per_account/modules/sds_etl_hscn_vpc/main.tf renamed to archived_epr/infrastructure/terraform/per_account/modules/sds_etl_hscn_vpc/main.tf

File renamed without changes.

infrastructure/terraform/per_account/modules/sds_etl_hscn_vpc/vars.tf renamed to archived_epr/infrastructure/terraform/per_account/modules/sds_etl_hscn_vpc/vars.tf

File renamed without changes.

changelog/2025-03-10.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
- [PI-387] Add Product Team Id to search results
1+
- [PI-837] Add Product Team Id to search results
22
- [PI-843] Add Read Product to test UI
33
- [PI-764] Refine Swagger

changelog/2025-03-12.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- [PI-841] Remove VPC cpm-sds-etl-hscn-vpc
2+
- [PI-851] Swagger spec refinement - Part Deux
3+
- [PI-854] Fix sonarcloud runs

infrastructure/swagger/05_paths.yaml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ paths:
122122
parameters:
123123
- $ref: "#/components/parameters/ProductTeamId"
124124
- $ref: "#/components/parameters/HeaderVersion"
125+
- $ref: "#/components/parameters/HeaderAuthorization"
126+
- $ref: "#/components/parameters/HeaderApikey"
125127
- $ref: "#/components/parameters/HeaderRequestId"
126128
- $ref: "#/components/parameters/HeaderCorrelationId"
127129
responses:
@@ -145,6 +147,8 @@ paths:
145147
parameters:
146148
- $ref: "#/components/parameters/ProductTeamId"
147149
- $ref: "#/components/parameters/HeaderVersion"
150+
- $ref: "#/components/parameters/HeaderAuthorization"
151+
- $ref: "#/components/parameters/HeaderApikey"
148152
- $ref: "#/components/parameters/HeaderRequestId"
149153
- $ref: "#/components/parameters/HeaderCorrelationId"
150154
responses:
@@ -171,7 +175,7 @@ paths:
171175
- $ref: "#/components/parameters/ProductTeamId"
172176
responses:
173177
"400":
174-
$ref: "#/components/responses/BadRequest"
178+
$ref: "#/components/responses/CreateProductBadRequest"
175179
"200":
176180
description: "200 response"
177181
headers:
@@ -243,7 +247,7 @@ paths:
243247
- Options
244248
responses:
245249
"400":
246-
$ref: "#/components/responses/BadRequest"
250+
$ref: "#/components/responses/SearchProductBadRequest"
247251
"200":
248252
description: "200 response"
249253
headers:
@@ -284,6 +288,8 @@ paths:
284288
- $ref: "#/components/parameters/ProductTeamIdQuery"
285289
- $ref: "#/components/parameters/OrganisationCodeQuery"
286290
- $ref: "#/components/parameters/HeaderVersion"
291+
- $ref: "#/components/parameters/HeaderAuthorization"
292+
- $ref: "#/components/parameters/HeaderApikey"
287293
- $ref: "#/components/parameters/HeaderRequestId"
288294
- $ref: "#/components/parameters/HeaderCorrelationId"
289295
responses:
@@ -307,8 +313,6 @@ paths:
307313
tags:
308314
- Options
309315
responses:
310-
"400":
311-
$ref: "#/components/responses/BadRequest"
312316
"200":
313317
description: "200 response"
314318
headers:
@@ -325,6 +329,8 @@ paths:
325329
application/json:
326330
schema:
327331
$ref: "#/components/schemas/Empty"
332+
"400":
333+
description: "400 response"
328334
x-amazon-apigateway-integration:
329335
responses:
330336
default:
@@ -350,6 +356,8 @@ paths:
350356
parameters:
351357
- $ref: "#/components/parameters/ProductId"
352358
- $ref: "#/components/parameters/HeaderVersion"
359+
- $ref: "#/components/parameters/HeaderAuthorization"
360+
- $ref: "#/components/parameters/HeaderApikey"
353361
- $ref: "#/components/parameters/HeaderRequestId"
354362
- $ref: "#/components/parameters/HeaderCorrelationId"
355363
responses:
@@ -374,8 +382,6 @@ paths:
374382
tags:
375383
- Options
376384
responses:
377-
"400":
378-
$ref: "#/components/responses/BadRequest"
379385
"200":
380386
description: "200 response"
381387
headers:
@@ -392,6 +398,8 @@ paths:
392398
application/json:
393399
schema:
394400
$ref: "#/components/schemas/Empty"
401+
"404":
402+
description: "404 response"
395403
x-amazon-apigateway-integration:
396404
responses:
397405
default:
@@ -418,6 +426,8 @@ paths:
418426
- $ref: "#/components/parameters/ProductTeamId"
419427
- $ref: "#/components/parameters/ProductId"
420428
- $ref: "#/components/parameters/HeaderVersion"
429+
- $ref: "#/components/parameters/HeaderAuthorization"
430+
- $ref: "#/components/parameters/HeaderApikey"
421431
- $ref: "#/components/parameters/HeaderRequestId"
422432
- $ref: "#/components/parameters/HeaderCorrelationId"
423433
responses:

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,12 @@ components:
153153
properties:
154154
id:
155155
type: string
156-
name:
156+
cpm_product_team_id:
157157
type: string
158158
product_team_id:
159159
type: string
160+
name:
161+
type: string
160162
ods_code:
161163
type: string
162164
status:
@@ -186,6 +188,7 @@ components:
186188
cpm_product_team_id: "a9a9694d-001b-45ce-9f2a-6c9bf80ae0d0"
187189
products:
188190
- id: "P.1X3-XYZ"
191+
cpm_product_team_id: "a9a9694d-001b-45ce-9f2a-6c9bf80ae0d0"
189192
product_team_id: "55e86121-3826-468c-a6f0-dd0f1fbc0259"
190193
name: "My Great Product 1"
191194
ods_code: "F5H1R"
@@ -198,6 +201,7 @@ components:
198201
cpm_product_team_id: "152705aa-0342-487f-a654-64bba814a847"
199202
products:
200203
- id: "P.4Y6-ABC"
204+
cpm_product_team_id: "152705aa-0342-487f-a654-64bba814a847"
201205
product_team_id: "24ac1857-f718-4905-813f-52da930c3ea1"
202206
name: "My Great Product 3"
203207
ods_code: "F5H1R"

infrastructure/swagger/09_components--headers.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@ components:
2222
HeaderAuthorization:
2323
in: header
2424
name: authorization
25+
required: true
2526
schema:
2627
$ref: "#/components/schemas/HeaderAuthorization"
2728
HeaderApikey:
2829
in: header
2930
name: apikey
31+
required: true
3032
schema:
3133
$ref: "#/components/schemas/HeaderApikey"

0 commit comments

Comments
 (0)