java.lang.Object
org.qubership.integration.platform.runtime.catalog.rest.v1.controller.SnapshotController

@RestController @RequestMapping(value="/v1/catalog/chains/{chainId}/snapshots", produces="application/json") @CrossOrigin(origins="*") public class SnapshotController extends Object
  • Constructor Details

  • Method Details

    • findByChainIdLight

      @GetMapping public org.springframework.http.ResponseEntity<List<SnapshotResponse>> findByChainIdLight(@PathVariable String chainId)
    • findById

      @GetMapping("/{snapshotId}") public org.springframework.http.ResponseEntity<SnapshotResponse> findById(@PathVariable String chainId, @PathVariable String snapshotId, @RequestParam(required=false,defaultValue="false") boolean light)
    • build

      @PostMapping public org.springframework.http.ResponseEntity<SnapshotResponse> build(@PathVariable String chainId)
    • updateSnapshot

      @PutMapping("/{snapshotId}") public org.springframework.http.ResponseEntity<SnapshotResponse> updateSnapshot(@PathVariable String chainId, @PathVariable String snapshotId, @RequestBody SnapshotRequest request)
    • revert

      @PostMapping(path="/{snapshotId}/revert", produces="application/json") public org.springframework.http.ResponseEntity<SnapshotResponse> revert(@PathVariable String chainId, @PathVariable String snapshotId)
    • deleteAllByChainId

      @DeleteMapping public org.springframework.http.ResponseEntity<Void> deleteAllByChainId(@PathVariable String chainId)
    • deleteById

      @DeleteMapping("/{snapshotId}") public org.springframework.http.ResponseEntity<Void> deleteById(@PathVariable String chainId, @PathVariable String snapshotId)