Class ExportController
java.lang.Object
org.qubership.integration.platform.runtime.catalog.rest.v1.controller.ExportController
@RestController
@Validated
@RequestMapping(value="/v1/catalog/export",
produces="application/octet-stream")
@CrossOrigin(origins="*")
public class ExportController
extends Object
-
Constructor Summary
ConstructorsConstructorDescriptionExportController(ExportService exportService, ApiSpecificationExportService apiSpecificationExportService) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Object> org.springframework.http.ResponseEntity<Object> exportChain(@NotBlank String chainId) org.springframework.http.ResponseEntity<Object> exportChains(@NotEmpty @Valid List<String> chainIds, boolean exportWithSubChains) org.springframework.http.ResponseEntity<Object> exportSpecification(List<String> deploymentIds, List<String> snapshotIds, List<String> chainIds, List<String> httpTriggerIds, boolean externalRoutes, org.qubership.integration.platform.catalog.model.apispec.ApiSpecificationType specificationType, org.qubership.integration.platform.catalog.model.apispec.ApiSpecificationFormat format)
-
Constructor Details
-
ExportController
@Autowired public ExportController(ExportService exportService, ApiSpecificationExportService apiSpecificationExportService)
-
-
Method Details
-
exportChain
-
exportChains
-
exportAllChains
-
exportSpecification
@GetMapping("/api-spec") public org.springframework.http.ResponseEntity<Object> exportSpecification(@RequestParam(required=false,defaultValue="") List<String> deploymentIds, @RequestParam(required=false,defaultValue="") List<String> snapshotIds, @RequestParam(required=false,defaultValue="") List<String> chainIds, @RequestParam(required=false,defaultValue="") List<String> httpTriggerIds, @RequestParam(required=false,defaultValue="true") boolean externalRoutes, @RequestParam(required=false,defaultValue="OpenAPI") org.qubership.integration.platform.catalog.model.apispec.ApiSpecificationType specificationType, @RequestParam(required=false,defaultValue="YAML") org.qubership.integration.platform.catalog.model.apispec.ApiSpecificationFormat format)
-