Class HistoryController

java.lang.Object
org.qubership.atp.itf.lite.backend.controllers.HistoryController

@RestController @RequestMapping("/atp-itf-lite/api/v1/history") public class HistoryController extends Object
  • Constructor Details

    • HistoryController

      public HistoryController()
  • Method Details

    • getExecutionsHistory

      @PreAuthorize("@entityAccess.checkAccess(#request.getProjectId(),\'READ\')") @PostMapping public org.springframework.http.ResponseEntity<PaginatedResponse<RequestExecution>> getExecutionsHistory(@RequestBody HistorySearchRequest request)
    • getExecutionHistoryDetails

      @PreAuthorize("@entityAccess.checkAccess(#projectId,\'READ\')") @GetMapping("/{id}") public org.springframework.http.ResponseEntity<HistoryRequestDetailsResponse> getExecutionHistoryDetails(@PathVariable("id") UUID historyItemId, @RequestParam TransportType type, @RequestParam UUID projectId)
    • getBinaryFileHistory

      @PreAuthorize("@entityAccess.checkAccess(#projectId,\'READ\')") @GetMapping("/file/{id}") public void getBinaryFileHistory(@PathVariable("id") UUID fileId, @RequestHeader("X-Project-Id") UUID projectId, javax.servlet.http.HttpServletResponse response) throws IOException
      Throws:
      IOException
    • getExecutorsInRequestExecutionHistory

      @PreAuthorize("@entityAccess.checkAccess(#projectId,\'READ\')") @GetMapping("/executors") public org.springframework.http.ResponseEntity<List<String>> getExecutorsInRequestExecutionHistory(@RequestParam UUID projectId)