how to call a custom api using this.alfrescoApiService.getInstance().

cancel
Showing results for 
Search instead for 
Did you mean: 
dharmraj
Active Member

how to call a custom api using this.alfrescoApiService.getInstance().

I have created jar for custom api . so i don't want to call using custom http . I want to call using alfrescoApiService.

oauth2Auth for AAE  but i am not using AAE.

Which one is correct ?

1. this.alfrescoApiService.getInstance().oauth2Auth.callCustomApi()

2. this.alfrescoApiService.getInstance().authClient.callCustomApi()

3. this.alfrescoApiService.getInstance().bpmClient.callCustomApi()

How  to pass complete Url with host and port number using callAPI() method ?

1 Reply
Moderator
Moderator

Re: how to call a custom api using this.alfrescoApiService.getInstance().

You can search the code in the GitHub repository to see how the apis are used by the components:

https://github.com/Alfresco/alfresco-ng2-components/search?l=TypeScript&q=callcustomapi