...
| Description | Create an review |
URL | /api/reviews |
| Method | POST |
| Security | Requires User role on the projectauthentication |
Examples
- Create a review on the violation of id '123':
- Status: OPEN
- Assignee: admin
Comment: myComment
Code Block language none curl -u admin:admin -d "violation_id=123&status=OPEN&comment=myComment&assignee=admin" -X POST http://localhost:9000/api/reviews
...
| Description | Add a comment |
URL | /api/reviews/add_comment |
| Method | PUT |
| Security | Requires User role on the projectauthentication |
Examples
Add the following comment on the review of id '345': 'myComment'
Code Block language none curl -u admin:admin -d "id=345&comment=myComment" -X PUT http://localhost:9000/api/reviews/add_comment
...
| Description | Reassign a review |
URL | /api/reviews/reassign |
| Method | PUT |
| Security | Requires User role on the projectauthentication |
Examples
Reassign the review of id '345' to user 'admin':
Code Block language none curl -u admin:admin -d "id=345&assignee=admin" -X PUT http://localhost:9000/api/reviews/reassign
...
| Description | Resolve a review |
URL | /api/reviews/resolve |
| Method | PUT |
| Security | Requires User role on the projectauthentication |
Examples
- Resolve a review:
- XXX
- XXX
XXX
Flag the review of id '345' as false-positive:
| Code Block | ||
|---|---|---|
| ||
curl -u admin:admin -d "id=345& |
resolution=FALSE-POSITIVE&comment=myComment" -X PUT http://localhost:9000/api/reviews/resolve |
Parameters
Parameter | Description | Required | Default Value |
|---|---|---|---|
id | Review id | Yes | None |
| resolution | Can be 'FIXED' or 'FALSE-POSITIVE' | Yes | None |
comment | YesNo | None |
Reopen a Review
| Description | Reopen a review |
URL | /api/reviews/reopen |
| Method | PUT |
| Security | Requires User role on the projectauthentication |
Examples
Reopen
athe review of id '345':
- XXX
- XXX
XXX
| Code Block | ||
|---|---|---|
|
curl -u admin:admin -d "id=345&comment=myComment" -X PUT http://localhost:9000/api/reviews/reopen |
Parameters
Parameter | Description | Required | Default Value |
|---|---|---|---|
id | Review id | Yes | None |
comment |
| YesNo | None |

