Class TestCaseEditionController
- java.lang.Object
-
- com.chutneytesting.design.api.editionlock.TestCaseEditionController
-
@RestController @CrossOrigin(origins="*") @RequestMapping("/api/v1/editions/testcases") public class TestCaseEditionController extends Object
-
-
Constructor Summary
Constructors Constructor Description TestCaseEditionController(TestCaseEditionsService testCaseEditionsService, SpringUserService userService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TestCaseEditionDtoeditTestCase(String testCaseId)voidendTestCaseEdition(String testCaseId)List<TestCaseEditionDto>testCasesEditions(String testCaseId)
-
-
-
Constructor Detail
-
TestCaseEditionController
public TestCaseEditionController(TestCaseEditionsService testCaseEditionsService, SpringUserService userService)
-
-
Method Detail
-
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)
-
-