diff --git a/src/api/workflow.ts b/src/api/workflow.ts index ab89675c..b90a95be 100644 --- a/src/api/workflow.ts +++ b/src/api/workflow.ts @@ -17,3 +17,17 @@ export const getActiveWorkflow = async(id: string) : Promise => { } }; +export const getParamsOfActiveWorkflow = async(id: string) : Promise => { + try { + const response = await axios.get(`http://localhost:8080/workflow/params/${id}`) + if (response.status === 200) { + return response.data; + } else { + throw new Error('Something went wrong when fetching the parameters of the recorded workflow'); + } + } catch(error: any) { + console.log(error); + return null; + } +}; +