-
Task
-
Resolution: Done
-
Medium
-
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