AnsweredAssumed Answered

CMIS search problem in public REST API

Question asked by djole87 on Jul 1, 2019
Latest reply on Jul 4, 2019 by afaust

Hi everyone,

 

I'm am trying to integrate with Alfresco using it's public REST API and I found some limitations there so far.
Currently I'm using Alfresco 5.2 Community edition.

 

First I was not able to get list of all available fields on a node, as it is not possible to get dictionary info using Alfresco's public REST API. With above mentioned, I assume I cannot also get list of all available permissions that one can set on a node, please correct if I'm wrong?

 

Now if I'm using search API, and cmis QL, I'm not able to get just specific properties from the cmis:document. If I use following POST call:
http://localhost:port/alfresco/api/-default-/public/search/versions/1/search
with following body parameter:
{
   "query": {
      "language": "cmis",
      "query": "select * from cmis:document where cmis:name like 'tes%'",
   }

}
result I've got is as expected.

But if I use query to select specific cmis properties e.g. 
"query": "select cmis:objectId from cmis:document where cmis:name like 'djur%'",
it returns me exactly the same subset of data as I'm using '*'.

 

Is this a bug in Alfresco public REST API, or is there another way to achieve what I described above?

 

Thanks in advance,
Djordje 

Outcomes