AnsweredAssumed Answered

Endpoint CMIS 1.1 from dashlet

Question asked by jdebat on Jun 6, 2014
Latest reply on Jun 6, 2014 by jdebat
Hello!

I'm bew on Alfresco and I'm develloping a site dashlet.
My problem :

I want to retrieve data from CMIS with this URL.
http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root/sites/test-xi/dataLists/02fee43f-fd09-46d7-85a7-293317b32be9?cmisselector=children&succinct=true

From the Browser i get the good JSON return but from the dashlet i can't because the url become :
http://localhost:8080/alfresco/s/api/-default-/public/cmis/versions/1.1/browser/root/sites/test-xi/dataLists/02fee43f-fd09-46d7-85a7-293317b32be9?cmisselector=children&succinct=true

this is my code :
<blockcode>
var theUrl = "/api/-default-/public/cmis/versions/1.1/browser/root/sites/" + site + "/dataLists?cmisselector=children&succinct=true";
      
   var connectorCMIS = remote.connect("alfresco-cmis");
   var resJson = connectorCMIS.get(theUrl);
   var myJsonObject = eval('(' + resJson + ')');
</blockcode>

thank you !

Outcomes