Class SecuredVariableControllerV2
java.lang.Object
org.qubership.integration.platform.variables.management.rest.v2.controller.SecuredVariableControllerV2
@RestController
@RequestMapping("/v2/secured-variables")
@CrossOrigin(origins="*")
@Validated
public class SecuredVariableControllerV2
extends Object
-
Constructor Summary
ConstructorsConstructorDescriptionSecuredVariableControllerV2(SecuredVariableService securedVariableService, SecretResponseMapper secretResponseMapper) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<List<SecretResponse>> addVariables(@Valid SecuredVariablesRequest request) org.springframework.http.ResponseEntity<?> deleteVariables(Map<String, Set<String>> secretsVariables) org.springframework.http.ResponseEntity<Void> deleteVariablesFromSecret(String secretName, Set<String> variablesNames) org.springframework.http.ResponseEntity<List<SecretResponse>> getVariablesForSecret(String secretName) org.springframework.http.ResponseEntity<SecretResponse> updateVariable(SecuredVariablesRequest updateRequest)
-
Constructor Details
-
SecuredVariableControllerV2
@Autowired public SecuredVariableControllerV2(SecuredVariableService securedVariableService, SecretResponseMapper secretResponseMapper)
-
-
Method Details
-
getVariables
-
getVariablesForSecret
-
addVariables
@PostMapping public org.springframework.http.ResponseEntity<List<SecretResponse>> addVariables(@Valid @RequestBody @Valid SecuredVariablesRequest request) -
updateVariable
@PatchMapping public org.springframework.http.ResponseEntity<SecretResponse> updateVariable(@RequestBody SecuredVariablesRequest updateRequest) -
deleteVariablesFromSecret
-
deleteVariables
-