5 Replies Latest reply on Feb 19, 2020 2:00 AM by Sorabh Agarwal

    Can we do pagination in API on basis of response receive

    Neha Shinde New Member

      Need to implement below:

       

      The API’s will have 4 new input parameters along with the existing input parameters.

      1. Number of Records
      2. Page Number
      3. Limit
      4. Offset
      • Pass the Limit and Offset input parameters in the JSON input. Limit is the maximum number of records which is required in the response of the API. This cannot be more than 100. Offset is from which record number the records are required. For e.g. Limit=’50’ and Offset=’125’ is passed as input, 50 records starting from row 126 are passed back in the JSON.

       

      Please note that data is not cached on the API side. Every call will fetch the data back from the database.