Question
As per the Consumer Data Standards (CDS), what are the expected properties for Links Pagination when a request such as GET Accounts returns only one page?
This is an example of a current response for the link section:
"links":{
"self":"https://<HOST>/cds-au/v1/banking/accounts?page=1&page-size=25",
"first":"https://<HOST>/cds-au/v1/banking/accounts?page=1&page-size=25",
"last":"https://<HOST>/cds-au/v1/banking/accounts?page=1&page-size=25"
}
Answer
The example response mentioned is correct. LinksPaginated includes a number of optional fields which are to be returned depending on the page location in the result set. Since there is only one page of results obtainable using the pagination filters, you would not present a next
and prev
value.
Question
Can you confirm whether the first
and last
fields are mandatory when there is only one page of results obtainable using the pagination filters?
Answer
The first
and last
fields are not mandatory if the first and last pages are the same.
Comments
0 comments
Please sign in to leave a comment.