mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 10:24:38 +08:00
In workflows api, when show workflow request is made, now displaying info on steps and connectors.
This commit is contained in:
@@ -73,6 +73,16 @@ class WorkflowsAPIController(BaseAPIController):
|
||||
# Eventually, allow regular tool parameters to be inserted and modified at runtime.
|
||||
# p = step.get_required_parameters()
|
||||
item['inputs'] = inputs
|
||||
steps = {}
|
||||
for step in latest_workflow.steps:
|
||||
steps[step.id] = {'id': step.id,
|
||||
'type': step.type,
|
||||
'tool_id': step.tool_id,
|
||||
'input_steps': {}}
|
||||
for conn in step.input_connections:
|
||||
steps[step.id]['input_steps'][conn.input_name] = {'source_step': conn.output_step_id,
|
||||
'step_output': conn.output_name}
|
||||
item['steps'] = steps
|
||||
return item
|
||||
|
||||
@web.expose_api
|
||||
|
||||
Reference in New Issue
Block a user