Skip to content

Commit 64f88ec

Browse files
Review comment
1 parent af4356a commit 64f88ec

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

sandbox/api/openapi.yaml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ paths:
232232
value:
233233
errors:
234234
- code: NOTIFY_INVALID_REQUEST
235-
detail: "Only 'limit' query parameter is supported"
235+
detail: Only 'limit' query parameter is supported
236236
id: rrt-1931948104716186917-c-geu2-10664-3111479-3.0
237237
links:
238238
about: https://digital.nhs.uk/developer/api-catalogue/nhs-notify-supplier
@@ -242,8 +242,8 @@ paths:
242242
value:
243243
errors:
244244
- code: NOTIFY_INVALID_REQUEST
245-
detail: "The limit parameter must be a positive\
246-
\ number not greater than 2500"
245+
detail: The limit parameter must be a positive number not greater
246+
than 2500
247247
id: rrt-1931948104716186917-c-geu2-10664-3111479-3.0
248248
links:
249249
about: https://digital.nhs.uk/developer/api-catalogue/nhs-notify-supplier
@@ -388,7 +388,7 @@ paths:
388388
schema:
389389
$ref: "#/components/schemas/postLetters_request"
390390
responses:
391-
"200":
391+
"202":
392392
description: 202 (Accepted) Acknowledges that status updates have been posted
393393
headers:
394394
X-Request-ID:
@@ -756,7 +756,6 @@ paths:
756756
type: Letter
757757
schema:
758758
$ref: "#/components/schemas/patchLetter_request"
759-
required: true
760759
responses:
761760
"200":
762761
content:
@@ -1241,13 +1240,6 @@ components:
12411240
- specificationId
12421241
- status
12431242
type: object
1244-
patchLetter_request:
1245-
properties:
1246-
data:
1247-
$ref: "#/components/schemas/postLetters_request_data_inner"
1248-
required:
1249-
- data
1250-
type: object
12511243
listLetters_400_response:
12521244
properties:
12531245
errors:
@@ -1292,6 +1284,13 @@ components:
12921284
$ref: "#/components/schemas/listLetters_200_response_data_inner"
12931285
type: array
12941286
type: object
1287+
patchLetter_request:
1288+
properties:
1289+
data:
1290+
$ref: "#/components/schemas/postLetters_request_data_inner"
1291+
required:
1292+
- data
1293+
type: object
12951294
getLetterStatus_200_response:
12961295
properties:
12971296
data:
@@ -1460,3 +1459,7 @@ x-nhsd-apim:
14601459
- name: NHSD-Supplier-ID
14611460
header: NHSD-Supplier-ID
14621461
required: false
1462+
ratelimiting:
1463+
app-default:
1464+
limit: 300
1465+
timeunit: second

specification/api/components/endpoints/postLetters.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ tags:
55
requestBody:
66
$ref: '../requests/postLettersRequest.yml'
77
responses:
8-
'200':
8+
'202':
99
$ref: "../responses/postLetters202.yml"
1010
'404':
1111
$ref: "../responses/errors/resourceNotFound.yml"

0 commit comments

Comments
 (0)