Class ComponentEditionController
java.lang.Object
com.chutneytesting.component.scenario.api.ComponentEditionController
@RestController
@CrossOrigin(origins="*")
@RequestMapping("/api/scenario/component-edition")
public class ComponentEditionController
extends Object
-
Constructor Summary
ConstructorsConstructorDescriptionComponentEditionController(OrientComposableTestCaseRepository orientComposableTestCaseRepository, UserService userService, TestCasePreProcessors testCasePreProcessors) -
Method Summary
Modifier and TypeMethodDescriptiongetExecutableTestCase(String testCaseId) getTestCase(String testCaseId) getTestCaseExecutionParameters(String testCaseId) voidremoveScenarioById(String testCaseId) saveTestCase(ComposableTestCaseDto composableTestCaseDto)
-
Constructor Details
-
ComponentEditionController
public ComponentEditionController(OrientComposableTestCaseRepository orientComposableTestCaseRepository, UserService userService, TestCasePreProcessors testCasePreProcessors)
-
-
Method Details
-
saveTestCase
@PreAuthorize("hasAuthority(\'SCENARIO_WRITE\')") @PostMapping(path="", consumes="application/json", produces="application/json") public String saveTestCase(@RequestBody ComposableTestCaseDto composableTestCaseDto) -
getTestCase
@PreAuthorize("hasAuthority(\'SCENARIO_READ\')") @GetMapping(path="/{testCaseId}", produces="application/json") public ComposableTestCaseDto getTestCase(@PathVariable("testCaseId") String testCaseId) -
getTestCaseExecutionParameters
-
getExecutableTestCase
@PreAuthorize("hasAuthority(\'SCENARIO_READ\')") @GetMapping(path="/{testCaseId}/executable", produces="application/json") public ComposableTestCaseDto getExecutableTestCase(@PathVariable("testCaseId") String testCaseId) -
removeScenarioById
@PreAuthorize("hasAuthority(\'SCENARIO_WRITE\')") @DeleteMapping(path="/{testCaseId}") public void removeScenarioById(@PathVariable("testCaseId") String testCaseId)
-