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 Details

  • Method Details

    • getVariables

      @GetMapping public org.springframework.http.ResponseEntity<Map<String,String>> getVariables()
    • addVariables

      @PostMapping public org.springframework.http.ResponseEntity<List<String>> addVariables(@Valid @RequestBody @Valid Map<@Pattern(regexp="^[-._a-zA-Z0-9]+$",message="does not match \"{regexp}\"") String,String> variables)
    • updateVariable

      @PatchMapping("/{name}") public org.springframework.http.ResponseEntity<StringResponse> updateVariable(@PathVariable String name, @RequestBody(required=false) String value)
    • deleteVariables

      @DeleteMapping public org.springframework.http.ResponseEntity<Void> deleteVariables(@RequestParam List<String> variablesNames)
    • 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)