Support pagination for API endpoints #183
Closed
IgorBalog-Eng
started this conversation in
General
Replies: 1 comment
-
Implemented |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It would be "nice to have" pagination, now when we have dynamic filtering for API endpoints, at least for getAll endpoint.
We should support pagination. There are 2 "imlementations":
Idea is to
modify GenericDynamicFilterRepository
Collection findWithDynamicFilters(Map<String, Object> filters, Class entityClass);
to
Page findWithDynamicFilters(Map<String, Object> filters, Class entityClass, Pageable pageable);
extend existing controllers, that are of interes (ContractNegotiation, TransferProcess, AuditEvent) to have page, size and filter (consider adding default values if not provided)
modify service to accept pagable (depends on concrete repository
Beta Was this translation helpful? Give feedback.
All reactions