In any collection of the APIs, the information provided by these properties is not showing the correct info:
- lastPageNumber is always showing "1" (even if there are several pages)
-totalCount is showing the numbers of the elements in the current page, not the totalCount.
In hypermedia, we had 2 parameters: count -> elements in a page. total -> elements in the collection. We could recover it and have pageCount and totalCount.
Moreover, I'd suggest aligning page, pageSize parameters with properties pageNumber and itemsPerPage so they have the same values