Full documentation for SonarQube has moved to a new location: http://docs.sonarqube.org/display/SONAR

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Get all the manual measures on project 'myProject':

    Code Block
    languagenone
    GET http://localhost:9000/api/manual_measures?resource=myProject



  2. Get the a manual measure of on metric 'business_value' on project 'myProject':

    Code Block
    languagenone
    GET http://localhost:9000/api/manual_measures?resource=myProject&metric=business_value

...

  1. Create a manual measure on project 'myProject' being logged in as user adminuser 'admin/admin':
    • Manual metric: business_value
    • Value: 5000

      Code Block
      languagenone
      curl -u admin:admin -d "resource=myProject&metric=business_value&val=5000" http://localhost:9000/api/manual_measures

...

Examples

  1. Delete manual measure 'business_value' on project 'myProject': 

    Code Block
    languagenone
    curl -u admin:admin -d "resource=myProject&metric=business_value&val=5000" X http://localhost:9000/api/manual_measures?resource=myProject&metric=business_value ???????????????????????????????????

Parameters

Parameter

Description

Required

Default Value

Value

resource

id or key of the project

Yes

None

org.codehaus.sonar:sonar

metric

Key of the manual metric

Yes

None

business_value