Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version. Compare with Current ·  View Page History

Get a List of Reviews

DescriptionGet a list of reviews

URL

/api/reviews

MethodGET

Security

Requires User role on the project

Number or ResultsResults are limited to 200 reviews, ordered by creation date (most recent to oldest)

Examples

  1. Get reviews whose ids are 47 and 48:



  2. Get all the versions and alerts from project Sonar (key = org.codehaus.sonar:sonar between January 1st, 2012 and August 31st, 2012):



  3. Get global events from October 8th, 2012:



Parameters

Parameter

Description

Required

Default value

ids

List of review ids

No

 

resources

Comma-separated list of resource ids or keys

No

 

projects

Comma-separated list of root project ids or keys

No

 

statuses

Comma-separated list of status
Possible values: OPEN | CLOSED 

No

 

resolutions

Comma-separated list of resolutions
Possible values: FIXED | FALSE-POSITIVE  

No

 

severities

Comma-separated list of severities
Possible values: INFO | MINOR | MAJOR | CRITICAL | BLOCKER

No

 

authors

Comma-separated list of author login 

No

 

assignees

Comma-separated list of assignee login

No

 

review_type

Type of review
Possible values: FALSE-POSITIVE | VIOLATION 

No

VIOLATION

output

Format of comments
Possible values: PLAIN| HTML

No

PLAIN

Create a Review

DescriptionCreate an event.

URL

/api/events

MethodPOST
 Security

Requires Project Administrator role to create an event.

Examples

  1. Create an event on project org.apache.struts:struts with administrator admin/admin:
    • Category: Alert
    • Name: myAlertName
    • Description: myAlertDescription
       

Parameters

Parameter

Description

Required

Default Value

Value

resource

id or key of the project

?

 

org.codehaus.sonar:sonar

category

Category

?

 

Version
Alert 

name

 

   

description

 

   
Autres paramètres ???    
To be reviewed and completed
    
Labels
  • None