Pagination Support

This section explains the pagination feature and the configuration of paginated query parameters. This feature supports paginated queries for the GET APIs in all the microservices.

Pagination support is available at the Framework level, where it is possible to get the page number and page size. You can view the result only in the current page with a maximum result as mentioned in page size thus reducing the time taken for the required information.

This process requires two parameters, that is, pageNumber and pageSize in the Swagger.

Sample URL is < URL>/?pageNumber=2&pageSize=2.

Based on the query parameters, the underlying microservice passes them to the DAO Layer. At runtime, while populating the value, you can check if only the required page information is returned from the service with page number and page size.

If page number is not available, then '1' is considered as PageNumber(default). If page size is not available, then the framework takes the value from the PAGE_SIZE available in the environment properties file. In case PAGE_SIZE is not defined in the environment property file, then it gets defaulted to 100.

Request without pagination is given below.

Request with pagination is given below.


Bookmark Name Actions
Feedback
x