Package com.chutneytesting.scenario.api
Class GwtTestCaseController
- java.lang.Object
-
- com.chutneytesting.scenario.api.GwtTestCaseController
-
@RestController @CrossOrigin(origins="*") @RequestMapping("/api/scenario/v2") public class GwtTestCaseController extends Object
-
-
Constructor Summary
Constructors Constructor Description GwtTestCaseController(AggregatedRepository<GwtTestCase> testCaseRepository, SpringUserService userService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GwtTestCaseDtogetTestCase(String testCaseId)RawTestCaseDtogetTestCaseById(String testCaseId)StringsaveTestCase(GwtTestCaseDto testCase)StringsaveTestCase(RawTestCaseDto rawTestCaseDto)StringupdateTestCase(GwtTestCaseDto testCase)
-
-
-
Constructor Detail
-
GwtTestCaseController
public GwtTestCaseController(AggregatedRepository<GwtTestCase> testCaseRepository, SpringUserService userService)
-
-
Method Detail
-
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)
-
-