QualInsight / qualinsight-plugins-sonarqube-badges

Plugin for SonarQube that generates badges displaying information about a project's or view's quality.
GNU Lesser General Public License v3.0
110 stars 141 forks source link

Which version is required for the 'measure' API? #48

Closed dokaspar closed 7 years ago

dokaspar commented 7 years ago

Hi,

I installed the SVG Badges plugin in version 2.0.1 and retrieving a quality gate badge works perfectly fine like this:

https://<myserver>/sonar/api/badges/measure?key=<mykey>

However, simply changing the API call to retrieve a metric badge does not work (nothing is returned, no image, no text...):

https://<myserver>/sonar/api/badges/measure?key=<mykey>&metric=coverage

I thought measure badges are already supported with version 2.0.0, is that wrong?

Regards, Dominik

dokaspar commented 7 years ago

Well, the simple answer is: you must "activate" the measures API :confused: