'How to paginate api platform results on Item Operations?

Hey guys I have a little problem with api platform, i have a "GET" item operation with a custom controller, and it fetch about 5000 result, so what i want to do is to limit results to 500 per page, any one could help me please ?

I already tried 'paginationItemsPerPage' and 'paginationMaximumItemsPerPage' but it works only on collection operations ?

Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source