feat (jans-config-api) : need to add pagination parameters in request and response of jans-config-api apis #2156
Labels
comp-jans-config-api
Component affected by issue or PR
enhancement
kind-feature
Issue or PR is a new feature request
Milestone
Is your feature request related to a problem? Please describe.
The server-side pagination is the performance efficient technique when amount of data is large.
Describe the solution you'd like
In order to implement server-side pagination on applications (like admin-UI, jans-cli etc) using jans-config-api, we need to add the following pagination parameters in all
GET
apis (fetching multiple records).In Request (query parameters to be added)
startIndex
- This is the page indexlimit
- This is the number of rows that will be displayed per page.Response (parameters to be added)
totalItems
- This is the number of records/rows in the database.Example
Request:
curl -X GET -i 'http://<hostname>/jans-config-api/api/v1/openid/clients?startIndex=1&limit=10'
Response:
cc: @yuriyz @devrimyatar
The text was updated successfully, but these errors were encountered: