What are the restapis to get Coverage,technical debt,unit test success density and unit test failure density json data for SonarQube 6.3.1 in Postman?

466 views Asked by At

The rest apis for Sonarqube 6.0 version is:-

1.(SonarqubeUrl)/api/issues/search=>For Technical Debt.
2.(SonarqubeUrl)/api/resources?metrics=ncloc,coverage=>For Code Coverage.
3.(SonarqubeUrl)/api/resources?metrics=ncloc,test_success_density=>For Unit Test Success.
4.(SonarqubeUrl)//api/resources?metrics=ncloc,test_failure_density=>For Unit Test Failure. Sources.
a.https://docs.sonarqube.org/pages/viewpage.action?pageId=2752802
b.https://docs.sonarqube.org/pages/viewpage.action?pageId=2392181

1

There are 1 answers

0
Jeroen Heier On

SonarCloud, an online version of SonarQube, is updated by SonarSource and will allways contain the latest features. Have a look at the SonarCloud API documentation:

api/resources is deprecated since 5.4 and dropped in 6.3. You should use api/measures