cancel
Showing results for 
Search instead for 
Did you mean: 

Calling public REST API in Java

mkczyk
Champ in-the-making
Champ in-the-making

I would like to use Alfresco REST API WebScript method in my Java code.

For example there is method getNodeContent: https://api-explorer.alfresco.com/api-explorer/#!/nodes/getNodeContent 

I need to wrap Alfresco out-of-the-box WebScript with custom functionality. But I cannot find how to call Java method that is used by REST API.

1 REPLY 1

rohit9637
Star Contributor
Star Contributor

If all you need is the content of given node then you can refer Alfresco documentation on given link

contentService.getReader(nodeRef, ContentModel.PROP_CONTENT);

The above method will return content for the node which you pass to the method.