SonarQube - Is there an API to capture part of the analysis for all your projects?

I want to be able to extract, for example, only technical debt numbers from my sonar instance for all the projects that I have, and display them on the page.

Does Sonar provide an api that I can use and achieve this?

+4
source share
1 answer

SonarQube allows you to get comprehensive data using its web API. An example of your project:

Since SonarQube 5.4

Use the api/measuresWeb API (see documentation options ). Example for postgresql project :

SonarQube 5.4

api/resources -API:

http://sonarqube_url/api/resources?resource=your_resource&metrics=metric_key

api/metrics/search ( ), . .

+8

All Articles