Allow creating workflow(s) by uploading Serverless Workflow definition file(s)
What would you like to be added:
To allow creating workflow(s) by uploading a Serverless Workflow definition file(s)
Why is this needed:
Allows users to upload a file instead of copy/pasting JSON
It requires an endpoint on the API to upload json/yaml/zip(or other archive formats)
@JBBianchi is that endpoint really required though? I believe you should be able to read that file on the front-end side using the IWorkflowReader from the ServerlessWorkflow SDK.
That way, we avoid contacting the back-end for nothing, and can do client-side validation first hand, before using the ISynapseManagementApi.CreateWorkflowAsync method.
WDYT?
Reading one file and posting its content isn't really a big challenge but it's a bit useless. From my understanding, file upload could be used for "projects", with multiple files (workflow, subflows and other references/resources). Am I missing something?
From my understanding, file upload could be use for "projects", with multiple files (workflow, subflows and other references/resources)
Yeah, that's a very valid point. I'm on it!
@JBBianchi My part's done ;)
