...
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 |
| format | Response format: xml or json | No | xml |
Create a Review
| Description | Create an review |
URL | /api/reviews |
| Method | POST |
| Security | Requires Project Administrator role to create an event.User role on the project |
Examples
- Create an event on project org.apache.struts:struts with administrator admin/admin:
- Category: Alert
- Name: myAlertName Description: myAlertDescriptiona review:
- XXX
- XXX
XXX
Code Block language none curl -u admin:admin -d "resource=org.apache.struts:struts&category=Alert&name=myAlertName&description=myAlertDescription" http://localhost:9000/api/events??????????????
Parameters
Parameter | Description | Required | Default Value |
|---|---|---|---|
violation_id | Violation on which the review should be created | Yes | None |
status | Initial status (can be 'OPEN' or 'RESOLVED') | Yes | None |
comment | Text of initial comment | Yes | None |
resolution | If status 'RESOLVED', then resolution must be provided (can be 'FIXED' or 'FALSE-POSITIVE') | No | None |
assignee | Login of initial assignee | No | None |
Add a Comment
| Description | Add a comment |
URL | /api/reviews/add_comment |
| Method | PUT |
| Security | Requires User role on the project |
Examples
- Add a comment on review:
- XXX
- XXX
XXX
Code Block language none ??????????????
Parameters
Parameter | Description | Required | Default Value |
|---|---|---|---|
id | Review id | Yes | None |
comment | New comment | Yes | None |
Reassign a Review
| Description | Reassign a review |
URL | /api/reviews/reassign |
| Method | PUT |
| Security | Requires User role on the project |
Examples
- Reassign a review:
- XXX
- XXX
XXX
Code Block language none ??????????????
Parameters
Parameter | Description | Required | Default Value | Value|||
|---|---|---|---|---|---|---|
id | ||||||
resource | id or key of the project | ? | org.codehaus.sonar:sonar | |||
category | Category | ? | Version | |||
name |
| |||||
description |
| |||||
| Autres paramètres ??? | ||||||
| ||||||
Review id | Yes | None | ||||
assignee | Login of new assignee | Yes | None |
Resolve
| Description | Resolve a review |
URL | /api/reviews/resolve |
| Method | PUT |
| Security | Requires User role on the project |
Examples
- Resolve a review:
- XXX
- XXX
XXX
Code Block language none ??????????????
Parameters
Parameter | Description | Required | Default Value |
|---|---|---|---|
id | Review id | Yes | None |
| resolution | Can be 'FIXED' or 'FALSE-POSITIVE' | Yes | None |
comment |
| Yes | None |
Reopen
| Description | Reopen a review |
URL | /api/reviews/reopen |
| Method | PUT |
| Security | Requires User role on the project |
Examples
- Reopen a review:
- XXX
- XXX
XXX
Code Block language none ??????????????
Parameters
Parameter | Description | Required | Default Value |
|---|---|---|---|
id | Review id | Yes | None |
comment |
| Yes | None |

