Is there a way to retrieve all stats that I see on a project page?
for example: number of bugs, vulnerabilities, security hotspots, code smells, coverage and duplications?
The api/qualitygates/project_status API returns only the measures that were used in conditions of the quality gate.
Please take a look at the api/measures/component API to get other metrics. I think you should be able to find everything. The api/metrics APIs may also be helpful.
Hi @janosapi/measures/component/ doesnt return granular information. It only shows complexity and new violations. Is there a way to get more granular info?
I tried with the following Api and it worked for me. Change the Project_key with your project_name and meticKeys as you required.
yourSonarServer/api/measures/component?component=Project_key&metricKeys=bugs,%20code_smells,%20coverage,%20duplicated_lines_density,%20vulnerabilities