...
API : GET http://<IP>:<PORT>/cps/api/v2/dataspaces/{dataspace-name}/nodes/query?cps-path={cps-path}&descendants={descendants}&pageIndex={pageIndex}&resultSizepageSize={resultSizepageSize}
Request Parameters:
Parameter | isRequired | Description |
---|---|---|
cps-path | yes | node path to be queried |
descendants | no | Number of descendants to be queried. default is none |
pageIndex | no | page index starting from 1. |
resultSizepageSize | no | number of records per request. It is nothing but number of anchors to be queried. Default value is 5(TBD). |
...
Query | Description |
---|---|
SELECT id FROM anchor order by id LIMIT : anchorSize pageSize OFFSET : (resultIndex pageIndex -1) * :anchorSize pageSize | query list of anchors |
SELECT id, anchor_id AS anchorId, xpath, parent_id AS parentId, CAST(attributes AS TEXT) AS attributes FROM FRAGMENT WHERE anchor_id IN :anchorList AND xpath ~ :xpathRegex | query fragments for list of anchors from above query |
...