@ApiOperation(value = "Initiate a pipeline execution") @RequestMapping(value = "/start", method = RequestMethod.POST) String start(@RequestBody Map map) throws Exception { return startPipeline(map); }
@RequestMapping(value = "/instance/enabled", consumes = "application/json", method = RequestMethod.POST) void setInstanceEnabled(@RequestBody Map<String, Boolean> enabledWrapper) { Boolean enabled = enabledWrapper.get("enabled"); if (enabled == null) { throw new ValidationException("The field 'enabled' must be set.", null); } setInstanceEnabled(enabled); }
@ApiOperation(value = "Initiate a pipeline execution") @RequestMapping(value = "/start", method = RequestMethod.POST) String start(@RequestBody Map map) throws Exception { return startPipeline(map); }
@RequestMapping(value = "/instance/enabled", consumes = "application/json", method = RequestMethod.POST) void setInstanceEnabled(@RequestBody Map<String, Boolean> enabledWrapper) { Boolean enabled = enabledWrapper.get("enabled"); if (enabled == null) { throw new ValidationException("The field 'enabled' must be set.", null); } setInstanceEnabled(enabled); }