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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2022 08:42 AM
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 .
- Labels:
-
Alfresco Content Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2022 06:06 AM
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
