Class ComponentEditionController


  • @RestController
    @CrossOrigin(origins="*")
    @RequestMapping("/api/scenario/component-edition")
    public class ComponentEditionController
    extends Object
    • Method Detail

      • saveTestCase

        @PreAuthorize("hasAuthority(\'SCENARIO_WRITE\')")
        @PostMapping(path="",
                     consumes="application/json",
                     produces="application/json")
        public String saveTestCase​(@RequestBody
                                   ComposableTestCaseDto composableTestCaseDto)
      • getTestCase

        @PreAuthorize("hasAuthority(\'SCENARIO_READ\')")
        @GetMapping(path="/{testCaseId}",
                    produces="application/json")
        public ComposableTestCaseDto getTestCase​(@PathVariable("testCaseId")
                                                 String testCaseId)
      • getTestCaseExecutionParameters

        @PreAuthorize("hasAuthority(\'CAMPAIGN_WRITE\')")
        @GetMapping(path="/{testCaseId}/executable/parameters",
                    produces="application/json")
        public List<KeyValue> getTestCaseExecutionParameters​(@PathVariable("testCaseId")
                                                             String testCaseId)
      • getExecutableTestCase

        @PreAuthorize("hasAuthority(\'SCENARIO_READ\')")
        @GetMapping(path="/{testCaseId}/executable",
                    produces="application/json")
        public ComposableTestCaseDto getExecutableTestCase​(@PathVariable("testCaseId")
                                                           String testCaseId)
      • removeScenarioById

        @PreAuthorize("hasAuthority(\'SCENARIO_WRITE\')")
        @DeleteMapping(path="/{testCaseId}")
        public void removeScenarioById​(@PathVariable("testCaseId")
                                       String testCaseId)