CDR Pagination requirements
Would like to know about the Pagination requirement of CDR: (https://consumerdatastandardsaustralia.github.io/standards/#tocSlinkspaginated)
The CDR Pagination requirement says :
"links": {
"self": "string",
"first": "string",
"prev": "string",
"next": "string",
"last": "string"
}
but can we have as below which as per HATEOS specification (notice href present within and then url)
"_links": {
"first": {
"href": "http://localhost:8080/api/v4/customers?firstNameFilter=R&lastNameFilter=S&sortList=firstName&sortOrder=ASC&page=0&size=10&sort=firstName,asc"
},
"self": {
"href": "http://localhost:8080/api/v4/customers?firstNameFilter=R&lastNameFilter=S&sortList=firstName&sortOrder=ASC&page=0&size=10&sort=firstName,asc"
},
"next": {
"href": "http://localhost:8080/api/v4/customers?firstNameFilter=R&lastNameFilter=S&sortList=firstName&sortOrder=ASC&page=1&size=10&sort=firstName,asc"
},
"last": {
"href": "http://localhost:8080/api/v4/customers?firstNameFilter=R&lastNameFilter=S&sortList=firstName&sortOrder=ASC&page=15&size=10&sort=firstName,asc"
}
}
Please sign in to leave a comment.
Comments
0 comments