Class ImportController
java.lang.Object
org.qubership.integration.platform.runtime.catalog.rest.v1.controller.ImportController
@RestController
@RequestMapping(value="/v1/catalog/import",
produces="application/json")
@CrossOrigin(origins="*")
@Deprecated(since="2023.4")
public class ImportController
extends Object
Deprecated.
-
Constructor Summary
ConstructorsConstructorDescriptionImportController(ImportService importService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<ImportDTO> importFile(org.springframework.web.multipart.MultipartFile file, String chainCommitRequests, List<String> technicalLabels, String packageName, String packageVersion, String packagePartOf) Deprecated.org.springframework.http.ResponseEntity<ImportPreviewDTO> importFileAsPreview(org.springframework.web.multipart.MultipartFile file) Deprecated.
-
Constructor Details
-
ImportController
@Autowired public ImportController(ImportService importService, @Qualifier("primaryObjectMapper") com.fasterxml.jackson.databind.ObjectMapper objectMapper) Deprecated.
-
-
Method Details
-
importFile
@PostMapping public org.springframework.http.ResponseEntity<ImportDTO> importFile(@RequestParam("file") org.springframework.web.multipart.MultipartFile file, @RequestParam(required=false) String chainCommitRequests, @RequestHeader(required=false,value="chain-labels") List<String> technicalLabels, @RequestHeader(required=false,value="X-SR-Package-Name") String packageName, @RequestHeader(required=false,value="X-SR-Package-Version") String packageVersion, @RequestHeader(required=false,value="X-SR-Part-Of") String packagePartOf) Deprecated. -
importFileAsPreview
@PostMapping("/preview") public org.springframework.http.ResponseEntity<ImportPreviewDTO> importFileAsPreview(@RequestParam("file") org.springframework.web.multipart.MultipartFile file) Deprecated.
-
ImportControllerV3instead