Class CommonVariablesController
java.lang.Object
org.qubership.integration.platform.variables.management.rest.v1.controller.CommonVariablesController
@RestController
@RequestMapping("/v1/common-variables")
@CrossOrigin(origins="*")
@Validated
public class CommonVariablesController
extends Object
-
Constructor Summary
ConstructorsConstructorDescriptionCommonVariablesController(CommonVariablesService commonVariablesService, CommonVariablesMapper commonVariablesMapper) -
Method Summary
Modifier and TypeMethodDescriptionaddVariables(@Valid Map<@Pattern(regexp="^[-._a-zA-Z0-9]+$",message="does not match \"{regexp}\"") String, String> variables) org.springframework.http.ResponseEntity<Void> deleteVariables(List<String> variablesNames) org.springframework.http.ResponseEntity<Object> exportVariables(@Valid List<@Pattern(regexp="^[-._a-zA-Z0-9]+$",message="does not match \"{regexp}\"") String> variablesNames, boolean asArchive) org.springframework.http.ResponseEntity<List<ImportVariablePreview>> importPreview(org.springframework.web.multipart.MultipartFile file) org.springframework.http.ResponseEntity<List<ImportVariableDTO>> importVariables(org.springframework.web.multipart.MultipartFile file, @Valid Set<@Pattern(regexp="^[-._a-zA-Z0-9]+$",message="does not match \"{regexp}\"") String> variablesNames) Deprecated.org.springframework.http.ResponseEntity<StringResponse> updateVariable(String name, String value)
-
Constructor Details
-
CommonVariablesController
@Autowired public CommonVariablesController(CommonVariablesService commonVariablesService, CommonVariablesMapper commonVariablesMapper)
-
-
Method Details
-
getVariables
-
addVariables
-
updateVariable
@PatchMapping("/{name}") public org.springframework.http.ResponseEntity<StringResponse> updateVariable(@PathVariable String name, @RequestBody(required=false) String value) -
deleteVariables
-
exportVariables
@GetMapping(value="/export", produces="application/octet-stream") public org.springframework.http.ResponseEntity<Object> exportVariables(@Valid @RequestParam(required=false) @Valid List<@Pattern(regexp="^[-._a-zA-Z0-9]+$",message="does not match \"{regexp}\"") String> variablesNames, @RequestParam(defaultValue="false") boolean asArchive) -
importVariables
@Deprecated(since="24.4") @PostMapping("/import") public org.springframework.http.ResponseEntity<List<ImportVariableDTO>> importVariables(@RequestParam org.springframework.web.multipart.MultipartFile file, @Valid @RequestParam(required=false) @Valid Set<@Pattern(regexp="^[-._a-zA-Z0-9]+$",message="does not match \"{regexp}\"") String> variablesNames) Deprecated. -
importPreview
@PostMapping("/preview") public org.springframework.http.ResponseEntity<List<ImportVariablePreview>> importPreview(@RequestParam org.springframework.web.multipart.MultipartFile file)
-