Using spring-cloud-openfeign version 2.1.3-RELEASE
It appears that the jackson mixin for Page
both use "page" as the JsonProperty but I believe it should be "number"
Here is an example of the default output of a Page from a restcontroller ( content removed )
{
"content": [
],
"pageable": {
"sort": {
"sorted": false,
"unsorted": true,
"empty": true
},
"pageSize": 20,
"pageNumber": 1,
"offset": 20,
"paged": true,
"unpaged": false
},
"totalElements": 403,
"last": false,
"totalPages": 21,
"sort": {
"sorted": false,
"unsorted": true,
"empty": true
},
"first": false,
"numberOfElements": 20,
"size": 20,
"number": 1,
"empty": false
}
Happy to submit a PR if my theory is correct.
Comment From: ryanjbaxter
Yes please submit a PR and include a test