@@ -69,6 +69,18 @@ paths:
6969 - FORWARDED
7070 type : string
7171 style : form
72+ - description : |-
73+ The ordinal number of the page of results to be retrieved. If omitted, the
74+ first page of results will be returned. Use the links section in the response
75+ body to determine whether any further pages of results exist.
76+ explode: true
77+ in: query
78+ name: page
79+ required: false
80+ schema:
81+ example: 1
82+ type: number
83+ style: form
7284 responses :
7385 " 200 " :
7486 content :
@@ -197,7 +209,7 @@ paths:
197209 id : 2WL5eYSWGzCHlGmzNxuqVusPxDg
198210 type : Letter
199211 schema :
200- $ref : " #/components/schemas/listLetters_200_response "
212+ $ref : " #/components/schemas/postLetters_200_response "
201213 description : Letter Resources Updated successfully
202214 " 404 " :
203215 content :
@@ -972,6 +984,38 @@ paths:
972984 x-eov-operation-handler : controllers/DefaultController
973985components :
974986 schemas :
987+ listLetters_200_response_links :
988+ additionalProperties : false
989+ description : Contains links to other data pages
990+ properties :
991+ last :
992+ description : URI of final page of data
993+ example : https://dev.api.service.nhs.uk/nhs-notify-supplier/letters?status=PENDING&page=10
994+ format : uri
995+ type : string
996+ next :
997+ description : URI of next page of data
998+ example : https://dev.api.service.nhs.uk/nhs-notify-supplier/letters?status=PENDING&page=5
999+ format : uri
1000+ type : string
1001+ prev :
1002+ description : URI of prev page of data
1003+ example : https://dev.api.service.nhs.uk/nhs-notify-supplier/letters?status=PENDING&page=7
1004+ format : uri
1005+ type : string
1006+ self :
1007+ description : URI of current page of data
1008+ example : https://dev.api.service.nhs.uk/nhs-notify-supplier/letters?status=PENDING&page=6
1009+ format : uri
1010+ type : string
1011+ type : object
1012+ postLetters_200_response :
1013+ properties :
1014+ data :
1015+ items :
1016+ $ref : " #/components/schemas/listLetters_200_response_data_inner"
1017+ type : array
1018+ type : object
9751019 createMI_request_data :
9761020 properties :
9771021 type :
@@ -1086,6 +1130,8 @@ components:
10861130 items :
10871131 $ref : " #/components/schemas/listLetters_200_response_data_inner"
10881132 type : array
1133+ links :
1134+ $ref : " #/components/schemas/listLetters_200_response_links"
10891135 type : object
10901136 getLetterStatus_200_response :
10911137 properties :
@@ -1094,6 +1140,8 @@ components:
10941140 type : object
10951141 postLetters_request_data_inner_attributes :
10961142 properties :
1143+ specificationId :
1144+ type : string
10971145 status :
10981146 default : PENDING
10991147 description : The supplier status of an individual letter
0 commit comments