I would like to do something like:
http://localhost:8080/dctm-rest/repositories/<docbase>/folders/0b024d06800654e7/documents?recursive=true
However, it doesn't seem that "recursive" is an option for that link relation. How is this supposed to be done?
I don't want to use DQL in this particular case since I need a document result state so that I can then get the content of the document.
It also seems very inefficient to have to drill down the folder hierarchy with multiple requests. I know there must be a way to do it but I'm just not very versed and there is not much to go on in the way of docs.
I suppose I could get the r_object_id in the dql query and then do another request for the document itself, though that doesn't seem right either. Is that my only option?
I'm just building a simple page with a table of documents, something like:
Header 1 | Header 2 | Header 3 | Header 4 | Header 5 |
---|
object_name | attribute | attribute | attribute | attribute |
| | | | |
Where the object_name column is a link to the content.
My thinking is that I will query for the r_object_id of the folder and then get a recursive list of documents below that folder. Unfortunately, the folder has many levels of subfolders making it impractical to do multiple requests. An object_name link is just a click event that does another xhr request using the document rel link for contents.
Thanks,
-Mark