Package fr.enedis.chutney.scenario.api
Class GwtTestCaseController
java.lang.Object
fr.enedis.chutney.scenario.api.GwtTestCaseController
@RestController
@RequestMapping("/api/scenario/v2")
public class GwtTestCaseController
extends Object
-
Constructor Summary
ConstructorsConstructorDescriptionGwtTestCaseController(AggregatedRepository<GwtTestCase> testCaseRepository, SpringUserService userService) -
Method Summary
Modifier and TypeMethodDescriptiongetTestCase(String testCaseId) getTestCaseById(String testCaseId) saveTestCase(GwtTestCaseDto testCase) saveTestCase(RawTestCaseDto rawTestCaseDto) updateTestCase(GwtTestCaseDto testCase)
-
Constructor Details
-
GwtTestCaseController
public GwtTestCaseController(AggregatedRepository<GwtTestCase> testCaseRepository, SpringUserService userService)
-
-
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)
-