The API should send a response to the caller and then start a process.
How ?
Discussion posts and replies are publicly visible
Start a process in that API and do not add changing to it. That way, the caller will immediately get a response as soon as the auth is successful and the process will take its own time to complete and will not keep the response part paused.
But what is your usecase? Why do you want to send the response first before initiating?
I need 2 functions to be performed upon uploading a file (via the WebAPI call).
1) Store the file.
2) Trigger a startProcess.
Both with a single API call !
I am aware the uploaded file could be passed to a!strartProcess as a parameter of the process, however this is "combinationn" of concerns I would like to avoid. So, what is required is upload the file, and trigger a process.