Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-1605

Implementation of pagination through anchors in query API

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Medium Medium
    • Montreal Release
    • None
    • None

      We need to implement pagination for query API ( query across all anchors). 

       

      • Define parameter names (pageSize, pageIndex)
      • Define response body - including response header totalPages, totalResults - the template of response
      • pageSize — ? anchors that matches the query

       

      Scenarios:

      • Both page index AND page size should be there or else it will throw exception
        • If page size and page index is not given then we query across all anchors 
      • If no data is returned for an anchor then it will not exist on the response

       

      A/C:

      Document API changes (include a description of pagination OVER ANCHORS, add default description)

      Add Integration test

      Demo - show both default behaviour vs with pagination

       

       

            rajesh.kumar Rajesh kumar
            rajesh.kumar Rajesh kumar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: