How to call sonar api from my java code

Yes, Sonarqube provides a web api, see the web api link
in the footer of your instance or https://sonarcloud.io/web_api/ for all details.
See Vulnerabilities report from API for some Groovy snippets using the web api.

1 Like