Class TaskValidationController
java.lang.Object
org.springframework.cloud.dataflow.server.TaskValidationController
@RestController
@RequestMapping("/tasks/validation")
@ExposesResourceFor(TaskAppStatusResource.class)
public class TaskValidationController
extends Object
Controller for operations on
ValidationStatus
.- Author:
- Glenn Renfro
-
Constructor Summary
ConstructorDescriptionTaskValidationController
(TaskValidationService taskValidationService) Create aTaskValidationController
that delegates toTaskValidationService
. -
Method Summary
Modifier and TypeMethodDescriptionReturnTaskAppStatusResource
showing the validation status the apps in a task.
-
Constructor Details
-
TaskValidationController
Create aTaskValidationController
that delegates toTaskValidationService
.- Parameters:
taskValidationService
- the task service to use
-
-
Method Details
-
validate
@GetMapping("/{name}") @ResponseStatus(OK) public TaskAppStatusResource validate(@PathVariable String name) ReturnTaskAppStatusResource
showing the validation status the apps in a task.- Parameters:
name
- name of the task definition- Returns:
- The status for the apps in a task definition.
-