Details
-
Feature
-
Status: Deferred (View Workflow)
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
Feature
- YADE provides the functionality to transfer the files using FTP, FTPS, SFTP, etc.
- YADE should also support REST Web Service in order to transfer files.
- For example if we can use the below REST Web Service via CURL to upload or download files:
- CURL command to upload file
- curl --request POST \
--url {{ API_TO_UPLOAD }} \
--header ' Cache-Control: no-cache ' \
--header ' Content-Type: {{application / json }}'
--header ' X-access-token: {{ ACCESS_TOKEN }} ' \
--form 'file = FILE_PATH' \
--form ' jobschedulerId = {{ JOBSCHEDULER_ID }} '
- curl --request POST \
- CURL command to download file
- curl --request POST \
--url {{ API_TO_DOWNLOAD }} \
--header ' Cache-Control: no-cache ' \
--header ' Content-Type: {{application / json }}'
--header ' X-access-token: {{ ACCESS_TOKEN }} ' \
--form 'file = FILE_PATH' \
--form ' jobschedulerId = {{ JOBSCHEDULER_ID }} '
- curl --request POST \
- CURL command to upload file
- Then YADE job should provide the corresponding XML element/ attributes and job parameters which can support REST Web Service to upload and download files.