@RestController
@RequestMapping(value="/tools")
public class ToolsController
extends java.lang.Object
Constructor and Description |
---|
ToolsController(XDStreamParser streamParser) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
convertJobGrabToText(Graph graph)
Convert a graph format into DSL text format.
|
java.util.Map<java.lang.String,java.lang.Object> |
parseJobToGraph(java.lang.String specification)
Parse a single job specification into a graph structure.
|
DocumentParseResultResource |
validate(java.lang.String definitions)
Accept a whole list of definitions and report whether they are valid as a whole or not.
|
@Autowired public ToolsController(XDStreamParser streamParser)
@RequestMapping(value="/parse", method=GET) public DocumentParseResultResource validate(@RequestParam(value="definitions") java.lang.String definitions)
@RequestMapping(value="/parseJobToGraph", method=POST) public java.util.Map<java.lang.String,java.lang.Object> parseJobToGraph(@RequestBody java.lang.String specification)
@RequestMapping(value="/convertJobGraphToText", method=POST) public java.util.Map<java.lang.String,java.lang.Object> convertJobGrabToText(@RequestBody Graph graph)