...
# | Issues | Notes | Decision |
---|---|---|---|
1 | How to support pagination. | we need to decide on how to support pagination for query API from two possible alternatives given below (pagination over fragments or pagination over anchors) | it was discussed in weekly meeting and decided by team members to implement pagination over anchors. |
2 | Default page size | should we go with some default page size or query all records if pagination parameter in not provided. | By default if pagination parameter in not provided then query all records. |
Pagination over fragments
...
Response Headers
Header | description | ||
---|---|---|---|
totalResultstotalPages | total Total number of available records (achors) | totalPages | total nulber of pages.pages for given page size |
Response body
Format | Example | |||||||
---|---|---|---|---|---|---|---|---|
[ {"anchorName":"anchor-01", "dataNodes":[{data-tree1},...{data-tree-n}] ... ,{"anchorName":"anchor-02", "dataNodes": [{datatree1},...,{data-tree-n}] } ] |
|
...