Add an LCPageable DTO object and paged endpoints
This LCPageable object is a wrapper of the Pageable available in Spring.
Pageable objects, however, are not serializable to JSON by default.
Converting the sort
field manually allows us to serialize properly.
Some endpoints are added to demonstrate this. However, instead of these endpoints being normal GET methods, we need to circumvent some trouble in OpenAPI Generator v4.2.3, by making these POST requests and passing the LCPageable as the request body.
Edited by Chris Lemaire