Refactor request JSON structure
Request JSON is unnecessarily complex, it should implement this interface:
interface RequestJson {
inputs: {
node: string
paramIndex: number
value: string
}[]
algorithms: {
[id: string]: {
name: string
templateParams: string[]
}
},
edges: {
from: string
to: string
paramIndex: number
}[]
outputs: {
[id: string]: string
}
}
Edited by Michael Vrána