Class RequestSnapshotController

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

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

    • RequestSnapshotController

      public RequestSnapshotController()
  • Method Details

    • saveSnapshot

      @PreAuthorize("@entityAccess.checkAccess(T(org.qubership.atp.itf.lite.backend.utils.UserManagementEntities).REQUEST.getName(),#projectId, \'UPDATE\')") @PostMapping public org.springframework.http.ResponseEntity<Void> saveSnapshot(@RequestParam UUID projectId, @RequestPart(name="file",required=false) org.springframework.web.multipart.MultipartFile file, @RequestPart(name="files",required=false) List<org.springframework.web.multipart.MultipartFile> files, @RequestPart(name="snapshotEntity") @Valid @Valid RequestSnapshot snapshot) throws IOException
      Save snapshot for request.
      Throws:
      IOException
    • getSnapshotById

      @PreAuthorize("@entityAccess.checkAccess(T(org.qubership.atp.itf.lite.backend.utils.UserManagementEntities).REQUEST.getName(),#projectId, \'READ\')") @GetMapping public org.springframework.http.ResponseEntity<RequestSnapshotResponse> getSnapshotById(@RequestParam UUID projectId, @RequestParam UUID sessionId, @RequestParam UUID requestId)
      Get snapshot for request by sessionId and requestId.
    • deleteSnapshotBySessionId

      @PreAuthorize("@entityAccess.checkAccess(T(org.qubership.atp.itf.lite.backend.utils.UserManagementEntities).REQUEST.getName(),#projectId, \'READ\')") @DeleteMapping public org.springframework.http.ResponseEntity<Void> deleteSnapshotBySessionId(@RequestParam UUID projectId, @RequestParam UUID requestId, @RequestParam UUID sessionId)
      Delete snapshot for request by sessionId.
    • bulkDeleteSnapshots

      @PreAuthorize("@entityAccess.checkAccess(T(org.qubership.atp.itf.lite.backend.utils.UserManagementEntities).REQUEST.getName(),#projectId, \'READ\')") @PostMapping("/bulkDelete") public org.springframework.http.ResponseEntity<Void> bulkDeleteSnapshots(@RequestParam UUID projectId, @RequestBody BulkDeleteSnapshotsRequest bulkDeleteSnapshotsRequest, @RequestParam UUID sessionId)
      Bulk delete snapshot for request by bulkDeleteSnapshotsRequest.