I am connecting to sonar to fetch the gate result for a project, once i get the result I must extract value from within response and return (BOOLEAN) TRUE or FALSE. If the value of getQualityGateStatus() == "OK" i will return TRUE else FALSE. Would like to do with webclient without blocking, i do not want to use rest template.
public Mono<String> getResult(String repo, String branch) {
Mono<String> res = sonarWebClient.get()
.uri("some url").retrieve()
.bodyToMono(Branch.class).map(x -> x.getStatus().getQualityGateStatus());
}