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&format=json



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

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

Parameters

Parameter

Description

Required

Default Value

Value

resourceid or key of the projectYesNoneorg.codehaus.sonar:sonar
metricid or key ???? of a of the manual metricNoNonebusiness_value
formatResponse formats: jsonNojson  

Create a Manual Measure

DescriptionCreate a manual measure

URL

/api/manual_measures

MethodPOST
 Security

Requires Project Administrator role on the project

...

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 

val

Value Decimal value of the manual measure

Yes (or text is set)None 

??????? Pas de description possible ?????

 

  textText value of the manual measureYes (or val is set)None 

Delete a Manual Measure

DescriptionDelete a manual measure

URL

/api/manual_measures

MethodDELETE
 Security

Requires Project Administrator role on the project

...

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

    Code Block
    languagenone
    curl -u admin:admin -X DELETE "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