in src/main/java/platform/qa/steps/RestApiStepDefinitions.java [280:301]
public void executePutApiWithParameters(String userName,
@NonNull String path,
@NonNull String id,
@NonNull Map<String, String> queryParams) {
var context = convertToRequestsContext(testContext.getScenarioContext().getContext(API_RESULTS));
Map<String, Object> paramsWithIds = getBodyWithIds(queryParams, context);
if (paramsWithIds.containsValue(null)) {
log.info("parameters and ids don't match, PUT request {} couldn't be send", path);
return;
}
String signature = new SignatureSteps(registryConfig.getDataFactory(userName),
registryConfig.getDigitalSignatureOps(userName),
registryConfig.getRedis()).signRequest(paramsWithIds);
String payload = new ObjectMapper().writeValueAsString(paramsWithIds);
String processedId = replaceValueFragmentWithValueFromRequest(id, testContext);
new RestApiClient(registryConfig.getDataFactory(userName), signature)
.put(processedId, payload, path);
}