Class StepController


  • @RestController
    @RequestMapping("/api/steps/v1")
    @CrossOrigin(origins="*")
    public class StepController
    extends Object
    • Method Detail

      • save

        @PreAuthorize("hasAuthority(\'COMPONENT_WRITE\')")
        @PostMapping(path="",
                     produces="application/json")
        public String save​(@RequestBody
                           ComposableStepDto step)
      • deleteById

        @PreAuthorize("hasAuthority(\'COMPONENT_WRITE\')")
        @DeleteMapping(path="/{stepId}")
        public void deleteById​(@PathVariable
                               String stepId)
      • findAll

        @PreAuthorize("hasAuthority(\'COMPONENT_READ\') or hasAuthority(\'SCENARIO_WRITE\')")
        @GetMapping(path="/all",
                    produces="application/json")
        public List<ComposableStepDto> findAll()
      • findParents

        @PreAuthorize("hasAuthority(\'COMPONENT_READ\')")
        @GetMapping(path="/{stepId}/parents",
                    produces="application/json")
        public ParentsStepDto findParents​(@PathVariable
                                          String stepId)
      • findById

        @PreAuthorize("hasAuthority(\'COMPONENT_READ\')")
        @GetMapping(path="/{stepId}",
                    produces="application/json")
        public ComposableStepDto findById​(@PathVariable
                                          String stepId)