Update API configuration and add optional input_value parameter
This commit is contained in:
parent
20ffe250a9
commit
33cf2ae5ae
2 changed files with 3 additions and 1 deletions
|
|
@ -862,7 +862,7 @@ export async function getVerticesOrder(
|
||||||
// if nodeId is not provided, the API will return all vertices
|
// if nodeId is not provided, the API will return all vertices
|
||||||
const config = {};
|
const config = {};
|
||||||
if (nodeId) {
|
if (nodeId) {
|
||||||
config["params"] = { component_id: nodeId };
|
config["params"] = { stop_component_id: nodeId };
|
||||||
}
|
}
|
||||||
return await api.get(`${BASE_URL_API}build/${flowId}/vertices`, config);
|
return await api.get(`${BASE_URL_API}build/${flowId}/vertices`, config);
|
||||||
}
|
}
|
||||||
|
|
@ -872,6 +872,7 @@ export async function postBuildVertex(
|
||||||
vertexId: string,
|
vertexId: string,
|
||||||
input_value: string
|
input_value: string
|
||||||
): Promise<AxiosResponse<VertexBuildTypeAPI>> {
|
): Promise<AxiosResponse<VertexBuildTypeAPI>> {
|
||||||
|
// input_value is optional and is a query parameter
|
||||||
return await api.post(
|
return await api.post(
|
||||||
`${BASE_URL_API}build/${flowId}/vertices/${vertexId}`,
|
`${BASE_URL_API}build/${flowId}/vertices/${vertexId}`,
|
||||||
input_value ? { inputs: { input_value: input_value } } : undefined
|
input_value ? { inputs: { input_value: input_value } } : undefined
|
||||||
|
|
|
||||||
|
|
@ -168,6 +168,7 @@ export async function buildVertices({
|
||||||
buildResults.push(false);
|
buildResults.push(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build the vertex
|
// Build the vertex
|
||||||
await buildVertex({
|
await buildVertex({
|
||||||
flowId,
|
flowId,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue