Class ImportInstructionsController
java.lang.Object
org.qubership.integration.platform.variables.management.rest.v1.controller.ImportInstructionsController
@RestController
@RequestMapping("/v1/common-variables/import-instructions")
@CrossOrigin(origins="*")
public class ImportInstructionsController
extends Object
-
Constructor Summary
ConstructorsConstructorDescriptionImportInstructionsController(ImportInstructionsService importInstructionsService, ImportInstructionsMapper importInstructionsMapper, ImportInstructionRequestMapper importInstructionRequestMapper) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<ImportInstructionDTO> addImportInstruction(@Valid ImportInstructionRequest importInstructionRequest) org.springframework.http.ResponseEntity<Void> deleteImportInstructions(List<String> importInstructionIds) org.springframework.http.ResponseEntity<ImportInstructionsDTO> filterImportInstructions(List<ImportInstructionsFilterRequest> filterRequests) org.springframework.http.ResponseEntity<ImportInstructionsDTO> org.springframework.http.ResponseEntity<ImportInstructionsConfig> org.springframework.http.ResponseEntity<ImportInstructionsDTO> searchImportInstructions(ImportInstructionsSearchRequest searchRequest) org.springframework.http.ResponseEntity<ImportInstructionDTO> updateImportInstruction(@Valid ImportInstructionRequest importInstructionRequest) org.springframework.http.ResponseEntity<List<ImportInstructionsExecutionResult>> uploadImportInstructionsConfig(org.springframework.web.multipart.MultipartFile file, List<String> labels)
-
Constructor Details
-
ImportInstructionsController
@Autowired public ImportInstructionsController(ImportInstructionsService importInstructionsService, ImportInstructionsMapper importInstructionsMapper, ImportInstructionRequestMapper importInstructionRequestMapper)
-
-
Method Details
-
getImportInstructions
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<ImportInstructionsDTO> getImportInstructions() -
getImportInstructionsConfig
@GetMapping(path="/config", produces="application/json") public org.springframework.http.ResponseEntity<ImportInstructionsConfig> getImportInstructionsConfig() -
searchImportInstructions
@PostMapping(path="/search", produces="application/json") public org.springframework.http.ResponseEntity<ImportInstructionsDTO> searchImportInstructions(@RequestBody ImportInstructionsSearchRequest searchRequest) -
filterImportInstructions
@PostMapping(path="/filter", produces="application/json") public org.springframework.http.ResponseEntity<ImportInstructionsDTO> filterImportInstructions(@RequestBody List<ImportInstructionsFilterRequest> filterRequests) -
uploadImportInstructionsConfig
@PostMapping(path="/upload", consumes="multipart/form-data") public org.springframework.http.ResponseEntity<List<ImportInstructionsExecutionResult>> uploadImportInstructionsConfig(@RequestParam("file") org.springframework.web.multipart.MultipartFile file, @RequestHeader(value="labels",required=false) List<String> labels) -
addImportInstruction
@PostMapping(consumes="application/json") public org.springframework.http.ResponseEntity<ImportInstructionDTO> addImportInstruction(@RequestBody @Valid @Valid ImportInstructionRequest importInstructionRequest) -
updateImportInstruction
@PatchMapping(consumes="application/json") public org.springframework.http.ResponseEntity<ImportInstructionDTO> updateImportInstruction(@RequestBody @Valid @Valid ImportInstructionRequest importInstructionRequest) -
deleteImportInstructions
-