3.9. Pokemon request pagination
Update the method answering GET
requests on the
route api/pokemon
to support pagination.
The method must now return collections of pokemon
rather than arrays (use ResourceCollection
).
When receiving pageSize
as a query parameter, the
number of pokemon in the collection must be limited.
When receiving pageNumber
as a query parameter, the
pokemon returned must be those in the desired page
when splitting all pokemon into pages of size pageSize
.