@RestController @RequestMapping(value="/tools") @Validated @ExposesResourceFor(value=TaskToolsResource.class) public class ToolsController extends Object
Constructor and Description |
---|
ToolsController() |
Modifier and Type | Method and Description |
---|---|
TaskToolsResource |
convertTaskGraphToText(org.springframework.cloud.dataflow.core.dsl.graph.Graph graph)
Convert a graph format into DSL text format.
|
TaskToolsResource |
parseTaskTextToGraph(Map<String,String> definition)
Parse a task definition into a graph structure.
|
@RequestMapping(value="/parseTaskTextToGraph", method=POST) public TaskToolsResource parseTaskTextToGraph(@RequestBody Map<String,String> definition)
definition
- the map containing the task definition DSL and task name@RequestMapping(value="/convertTaskGraphToText", method=POST) public TaskToolsResource convertTaskGraphToText(@RequestBody org.springframework.cloud.dataflow.core.dsl.graph.Graph graph)
graph
- the Flo GraphCopyright © 2024 Pivotal Software, Inc.. All rights reserved.