Bharath
Bharath

Reputation: 1

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?

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

Upvotes: 0

Views: 435

Answers (1)

Jeroen Heier
Jeroen Heier

Reputation: 3694

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

Upvotes: 0

Related Questions