Help with sonar web api to reterive a measure

  • which versions are you using * Version 9.9.4 (build 87374)
  • how is SonarQube deployed: Docker
  • what are you trying to achieve
    run curl command to test reteriving a measure
curl -i GET --url "www.sonarcubeserver.com/sonar/api/measures/component?component=testproject&metric=coverage" --header 'Authorization: Bearer xxxx'
  • what have you tried so far to achieve this

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

<span aria-live="polite" class="global-loading-text">Loading...</span>

was looking at response to be like

json format

 "measures": [
      {
        "metric": "complexity",
        "value": "12"
      },

If you put this URL in your browser, do you see the expected response?

www.sonarcubeserver.com/sonar/api/measures/component?component=testproject&metric=coverage

found the answer the version of sonarqube doesnt’ support bearer token - * Version 9.9.4 (build 87374).