UPLOAD FILE OR FOLDER USING SPRING BOOT API EXPLORER REST STORAGE IN ALFRESCO

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

UPLOAD FILE OR FOLDER USING SPRING BOOT API EXPLORER REST STORAGE IN ALFRESCO

Hello community,

I want to create an API to import a file using alfresco REST EXPLORER API.

I documented the EXPLORER API /api-explorer/#/nodes/ .

I managed to test it on postman by calling the URL directly.

My problem is to implement it on spring boot using FeignClient or RestTemplate.

Thanks for your help .

1 Reply
openpj
Moderator
Moderator

Re: UPLOAD FILE OR FOLDER USING SPRING BOOT API EXPLORER REST STORAGE IN ALFRESCO

You can download the OpenAPI descriptor from the Alfresco Content Services API Explorer and then generate your Alfresco Java Client using Open API Maven plugin or Swagger Codegen maven plugin.

A complete example related to the client of Activiti platform is available below:

https://github.com/OpenPj/activiti-swagger-client

So you only need to replace the JSON file with the Alfresco Content Services one exposed by your instance.

Hope this helps Smiley Wink