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
Constructors Constructor Description ComponentEditionController(OrientComposableTestCaseRepository orientComposableTestCaseRepository, UserService userService, TestCasePreProcessors testCasePreProcessors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComposableTestCaseDtogetExecutableTestCase(String testCaseId)ComposableTestCaseDtogetTestCase(String testCaseId)List<KeyValue>getTestCaseExecutionParameters(String testCaseId)voidremoveScenarioById(String testCaseId)StringsaveTestCase(ComposableTestCaseDto composableTestCaseDto)
-
-
-
Constructor Detail
-
ComponentEditionController
public ComponentEditionController(OrientComposableTestCaseRepository orientComposableTestCaseRepository, UserService userService, TestCasePreProcessors testCasePreProcessors)
-
-
Method Detail
-
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
@PreAuthorize("hasAuthority(\'CAMPAIGN_WRITE\')") @GetMapping(path="/{testCaseId}/executable/parameters", produces="application/json") public List<KeyValue> getTestCaseExecutionParameters(@PathVariable("testCaseId") String testCaseId)
-
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)
-
-