How to consume Alfresco APIs from an angular application?

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

How to consume Alfresco APIs from an angular application?

I have an angular application, and I want to interact with Alfresco community 7.1 via APIs from this List . how can I call these APIs?
Another question, I know that is possible to integrate ADF with angular applications, is there any tutorial or guide on how-to ?

1 Reply
Mark_Davidson
Partner

Re: How to consume Alfresco APIs from an angular application?

You can call the Alfresco REST API from JS very easily. I see you've found the API Explorer. It's a good place to start as you can use it to try out the various endpoints & experiment with different parameters. Just remember to authorise first. Default credentials are admin/admin. Once authorised you can try out the endpoints in API Explorer. You should be able to see what the endpoint URLs are, the request params, response, etc.

Alternatively you can add the alfresco-js-api (https://github.com/Alfresco/alfresco-js-api) as a dependency so you won't have to bother with the boilerplace REST code.