Class AggregatedTestCaseController

java.lang.Object
fr.enedis.chutney.scenario.api.AggregatedTestCaseController

@RestController @RequestMapping("/api/scenario/v2") public class AggregatedTestCaseController extends Object
  • Constructor Details

  • Method Details

    • testCaseMetaData

      @PreAuthorize("hasAuthority(\'SCENARIO_READ\')") @GetMapping(path="/{testCaseId}/metadata", produces="application/json") public TestCaseIndexDto testCaseMetaData(@PathVariable("testCaseId") String testCaseId)
    • getTestCases

      @PreAuthorize("hasAuthority(\'SCENARIO_READ\') or hasAuthority(\'CAMPAIGN_WRITE\')") @GetMapping(path="", produces="application/json") public List<TestCaseIndexDto> getTestCases()
    • removeScenarioById

      @PreAuthorize("hasAuthority(\'SCENARIO_WRITE\')") @DeleteMapping(path="/{testCaseId}") public void removeScenarioById(@PathVariable("testCaseId") String testCaseId)