Class GwtTestCaseController

java.lang.Object
fr.enedis.chutney.scenario.api.GwtTestCaseController

@RestController @RequestMapping("/api/scenario/v2") public class GwtTestCaseController extends Object
  • Constructor Details

  • Method Details

    • 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)