AnsweredAssumed Answered

How to Call Remote API from ADF 

Question asked by vidhipanchal on Dec 21, 2018
Latest reply on Dec 28, 2018 by eugenio_romano

Hello

 

I have configure my adf with alfresco by giving Ip address like xxx.xxx.x.x:8080 and i am also able to login.

Now I am trying to call custom webscript from adf using below api

import * as AlfrescoApi from 'alfresco-js-api';
alfrescoJsApi: any;
constructor(private apiService: AlfrescoApiService) {
   this.alfrescoJsApi = new AlfrescoApi({ provider: 'ALL' });
   this.alfrescoJsApi.core.webscriptApi.executeWebScript('GET', 'api/task-instances?authority=' +    this.authService.getEcmUsername())
}

 

but api is call localhost url like this

http://127.0.0.1:8080/alfresco/service/api/task-instances?authority=admin

insted of my configured ip.

 

How can i solve this?

 

Thanks

Vidhi

Outcomes