| Description | Get a list of events from a project |
URL | /api/events |
| HTTP Method | GET |
| Response Formats | json | xml |
Security | Requires User role to get the list of events for a specific project |
| Use Case | Example Request |
|---|---|
Get all the versions from project org.codehaus.sonar:sonar |
|
Get all the versions and alerts from project org.codehaus.sonar:sonar between January 1st, 2012 and August 31st, 2012 |
[
{
"id":"573318",
"rk":"org.codehaus.sonar:sonar",
"n":"3.3-SNAPSHOT",
"c":"Version",
"dt":"2012-10-05T22:15:38+0000"
},
...
] |
Parameter | Description | Required | Default Value | Example Value |
|---|---|---|---|---|
resource | id or key of the project | Yes | None |
|
categories | Comma-separated list of category filters (case-sensitive) | No | None | Version,Alert |
fromDateTime | ISO-8601 datetime (inclusive) | No | None | 2010-12-25T23:59:59+0100 |
toDateTime | ISO-8601 datetime (inclusive) | No | None | 2010-12-25T23:59:59+0100 |
fromDate | Date (inclusive) | No | None | 2010-12-25 |
toDate | Date (inclusive) | No | None | 2010-12-25 |
| format | Response format can be set through:
If nothing is set, json is used. | No | None | json |