Hi All,
I am planning to use CS REST api v1. Here is my requirement: I have a folder1 and it contains serveral documents with custom attributes. I need to use the custom attribute value and find the all the documents matching the criteria. Thanks
There are two approaches that you can use. You can get a directory listing using Content Server REST API and then retrieve the attribute infromation. Which in most cases it is time consuming. Documentation for the REST API can be found here:
https://developer.opentext.com
Or you can leverage the search engine REST API. Here is an example on how to accomplish this:
http://knowledge.opentext.com/knowledge/cs.dll/kcs/kbarticle/view/KB445777
Good luck,
Jerome
Thank you Jerome for your reply.
I was thinking about using CS REST by getting the children nodes of all documents and once I have all the node_ids of the documents, then I can get the attribute information of the document.
Yes, you are right, this is very time consuming. The same can also be achieved using CWS as it is a very mature api AND have used CWS in past. But, I would prefer to go with REST.
As you said, Search REST API may be a good candidate for my requirement.
Thanks
Hi Jerome,
In CS 16, we have CS REST APIv2 and that has REGIONS & SLICE APIs.
Can I use the SliceID or Regions api, to perform search e.g. http://hostname/OTCS/livelink.exe/api/v1/regions
If possible, could you please provide a sample. I cannot find anything in the REST API reference guide.
Examples on how to build a search query can be found here:
https://knowledge.opentext.com/knowledge/llisapi.dll/Open/16579994
Section '3.12 – slice' shows how to query a specific slice.
Regards,