Class GwtTestCaseController


  • @RestController
    @CrossOrigin(origins="*")
    @RequestMapping("/api/scenario/v2")
    public class GwtTestCaseController
    extends Object
    • Method Detail

      • getTestCase

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

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

        @PreAuthorize("hasAuthority(\'SCENARIO_WRITE\')")
        @PatchMapping(path="",
                      consumes="application/json",
                      produces="application/json")
        public String updateTestCase​(@RequestBody
                                     GwtTestCaseDto testCase)
      • saveTestCase

        @PreAuthorize("hasAuthority(\'SCENARIO_WRITE\')")
        @PostMapping(path="/raw",
                     consumes="application/json",
                     produces="application/json")
        public String saveTestCase​(@RequestBody
                                   RawTestCaseDto rawTestCaseDto)
      • getTestCaseById

        @PreAuthorize("hasAuthority(\'SCENARIO_READ\')")
        @GetMapping(path="/raw/{testCaseId}",
                    produces="application/json")
        public RawTestCaseDto getTestCaseById​(@PathVariable("testCaseId")
                                              String testCaseId)