08-13-2018 09:08 AM
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.
08-13-2018 09:31 AM
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.
Explore our Alfresco products with the links below. Use labels to filter content by product module.