AnsweredAssumed Answered

Share (5.2) Controller JS : Call Alfresco REST API

Question asked by gawel on Nov 23, 2017
Latest reply on Nov 24, 2017 by gawel

Hi,

For call Alfresco Webscript from Share on a controller js we used this code :

var conn = remote.connect("alfresco");

var repoResponse = conn.post("/api/sites", clientRequest, "application/json");

 

And this work.

 

So, How call Alfresco REST API on this same context?

See API information : Alfresco Content Services REST API Explorer 

var conn = remote.connect("alfresco");
var repoResponse = conn.get("/sites");

Doesn't work...

 

thx

Outcomes