The Page object returns:
{
"number": 0,
"size": 10,
"totalElements": 1000,
"numberOfElements": 100,
"hasContent": true,
"first": true,
"last": false,
"totalPages": 10
}
But PagedModel.PageMetadata only returns the information below. Was this implementation intentional?
{
"size": 10,
"number": 0,
"totalElements": 8,
"totalPages": 1
}