Class TestCaseEditionController
java.lang.Object
fr.enedis.chutney.design.api.editionlock.TestCaseEditionController
@RestController
@RequestMapping("/api/v1/editions/testcases")
public class TestCaseEditionController
extends Object
-
Constructor Summary
ConstructorsConstructorDescriptionTestCaseEditionController(TestCaseEditionsService testCaseEditionsService, SpringUserService userService) -
Method Summary
Modifier and TypeMethodDescriptioneditTestCase(String testCaseId) voidendTestCaseEdition(String testCaseId) testCasesEditions(String testCaseId)
-
Constructor Details
-
TestCaseEditionController
public TestCaseEditionController(TestCaseEditionsService testCaseEditionsService, SpringUserService userService)
-
-
Method Details
-
testCasesEditions
@PreAuthorize("hasAuthority(\'SCENARIO_READ\')") @GetMapping(path="/{testCaseId}", produces="application/json") public List<TestCaseEditionDto> testCasesEditions(@PathVariable("testCaseId") String testCaseId) -
editTestCase
@PreAuthorize("hasAuthority(\'SCENARIO_WRITE\')") @PostMapping(path="/{testCaseId}", produces="application/json") public TestCaseEditionDto editTestCase(@PathVariable("testCaseId") String testCaseId) -
endTestCaseEdition
@PreAuthorize("hasAuthority(\'SCENARIO_WRITE\')") @DeleteMapping(path="/{testCaseId}") public void endTestCaseEdition(@PathVariable("testCaseId") String testCaseId)
-