Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ParameterisRequiredDescription
cps-pathyesnode path to be queried
descendantsnoNumber of descendants to be queried. default is none
pageIndexnopage index starting from 1. 
pageSizenonumber of fragments per page starting from 1 (TBD). 

Query

...

QueryDescriptionDecision 
SELECT id, anchor_id AS anchorId, xpath, parent_id AS parentId, CAST(attributes AS TEXT) AS attributes FROM FRAGMENT WHERE xpath ~ :xpathRegex ORDERED BY id LIMIT :pageSize OFFSET : pageIndex + 1Query limited fragments in order of fragment id



Pagination over anchors

we can provide pagination over anchors where client can chose number of anchors per request to fetch fragments from. 

...