Systems API not working

34 views
Skip to first unread message

shu...@gmail.com

unread,
Jul 1, 2016, 8:03:19 PM7/1/16
to ozoneplatform-users
Hi,

I'm trying to get a list of registered applications through the Systems API, but it keeps returning an empty list.  Below are the lines of code:
var appRef = new iwc.system.Reference("/application");
appRef.list().then(function(paths){
  $("#appOutput").text(JSON.stringify(paths,null,2));
}).catch(function(err){
  $("#appOutput").text("Error: " + err);
});

I've tried setting my ozpIwc.config apiRootUrl to "/app" as well "/iwc-app"; it doesn't work in either cases.  I noticed in the debugger->general->endpoints, all the paths are empty, but I'm not sure why?

Also, how do I register an application?

Thanks.
Reply all
Reply to author
Forward
0 new messages