You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: implement query() for FuncCallHttpStep #1301
Why is this needed:
In order to simplify how we write code for HTTP calls.
Currently working option:
return FuncWorkflowBuilder.workflow("http-with-query-headers")
.tasks(
call("searchStarWarsCharacters",
http()
.GET()
// query(...) is not supported yet, include the query in the URI
// engine will replace values in {} if they match the task input
.endpoint("http://localhost:8089/api/people/?search={searchQuery}")
// Accept value is taken from workflow input, jq expression is used
.header("Accept", "${ .acceptHeaderValue }")
// export the results of the GET request as taskOutput
.exportAsTaskOutput()))
.build();
Activity