Class CampaignExecutionUiController

java.lang.Object
fr.enedis.chutney.execution.api.CampaignExecutionUiController

@RestController @RequestMapping("/api/ui/campaign/execution/v1") public class CampaignExecutionUiController extends Object
  • Constructor Details

  • Method Details

    • getLastCampaignExecution

      @PreAuthorize("hasAuthority(\'CAMPAIGN_READ\')") @GetMapping(path={"/{campaignName}/lastExecution","/{campaignName}/{env}/lastExecution"}, produces="application/json") public CampaignExecutionReportSummaryDto getLastCampaignExecution(@PathVariable("campaignId") Long campaignId)
    • executeCampaignByName

      @PreAuthorize("hasAuthority(\'CAMPAIGN_EXECUTE\')") @GetMapping(path={"/{campaignName}","/{campaignName}/{env}"}, produces="application/json") public List<CampaignExecutionReportDto> executeCampaignByName(@PathVariable("campaignName") String campaignName, @PathVariable("env") Optional<String> environment)
    • replayFailedScenario

      @PreAuthorize("hasAuthority(\'CAMPAIGN_EXECUTE\')") @PostMapping(path="/replay/{campaignExecutionId}", produces="application/json") public CampaignExecutionReportDto replayFailedScenario(@PathVariable("campaignExecutionId") Long campaignExecutionId)
    • executeCampaignsByPatternWithSurefireReport

      @PreAuthorize("hasAuthority(\'CAMPAIGN_EXECUTE\')") @GetMapping(path={"/{campaignPattern}/surefire","/{campaignPattern}/surefire/{env}"}, produces="application/zip") public byte[] executeCampaignsByPatternWithSurefireReport(jakarta.servlet.http.HttpServletResponse response, @PathVariable("campaignPattern") String campaignPattern, @PathVariable("env") Optional<String> environment)
    • stopExecution

      @PreAuthorize("hasAuthority(\'CAMPAIGN_EXECUTE\')") @PostMapping(path="/{executionId}/stop") @ResponseStatus(NO_CONTENT) public void stopExecution(@PathVariable("executionId") Long executionId)
    • executeCampaignById

      @PreAuthorize("hasAuthority(\'CAMPAIGN_EXECUTE\')") @PostMapping(path={"/byID/{campaignId}","/byID/{campaignId}/{env}"}, produces="application/json") public CampaignExecutionReportDto executeCampaignById(@PathVariable("campaignId") Long campaignId, @PathVariable("env") Optional<String> environment, @RequestBody ExecutionDatasetDto dataset)