Class SnapshotController
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 Summary
ConstructorsConstructorDescriptionSnapshotController(SnapshotService snapshotService, SnapshotMapper snapshotMapper) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<SnapshotResponse> org.springframework.http.ResponseEntity<Void> deleteAllByChainId(String chainId) org.springframework.http.ResponseEntity<Void> deleteById(String chainId, String snapshotId) org.springframework.http.ResponseEntity<List<SnapshotResponse>> findByChainIdLight(String chainId) org.springframework.http.ResponseEntity<SnapshotResponse> org.springframework.http.ResponseEntity<SnapshotResponse> org.springframework.http.ResponseEntity<SnapshotResponse> updateSnapshot(String chainId, String snapshotId, SnapshotRequest request)
-
Constructor Details
-
SnapshotController
@Autowired public SnapshotController(SnapshotService snapshotService, SnapshotMapper snapshotMapper)
-
-
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
-
deleteById
-