| Table of Contents |
Get a List of Reviews
| Description | Get a list of reviews |
URL | /api/reviews |
| Method | GET |
Security | Requires User role on the project |
| Number or Results | Results are limited to 200 reviews, ordered by creation date (most recent to oldest) |
Examples
Get reviews whose ids are 47 and 48:
Get all the versions and alerts from project Sonar (key = org.codehaus.sonar:sonar between January 1st, 2012 and August 31st, 2012):
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 | No |
|
resolutions | Comma-separated list of resolutions | No |
|
severities | Comma-separated list of severities | No |
|
authors | Comma-separated list of author login | No |
|
assignees | Comma-separated list of assignee login | No |
|
review_type | Type of review | No | VIOLATION |
output | Format of comments | No | PLAIN |
Create a Review
| Description | Create an event. |
URL | /api/events |
| Method | POST |
| Security | Requires Project Administrator role to create an event. |
Examples
- 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 | |||
name |
| |||||
description |
| |||||
| Autres paramètres ??? | ||||||
|

