| Description | Get a list of violations |
URL | /api/violations |
| Method | GET |
Security | Requires User role on project |
Examples
Get all the versions violations from project Sonar (key = org.codehaus.sonar:sonar):
Code Block language none GET http://nemo.sonarsource.org/api/eventsviolations?resource=org.codehaus.sonar:sonar&categoriesdepth=Version-1
Get all the versions and alerts from project Sonar (key = org.codehaus.sonar:sonar between January 1st, 2012 and August 31st, 2012):
Code Block language none GET http://nemo.sonarsource.org/api/events?resource=org.codehaus.sonar:sonar&categories=Alert,Version&fromDate=2012-01-01&toDate=2012-08-31
Get global events from October 8th, 2012:
Code Block language none GET http://localhost:9000/api/events?fromDate=2012-10-08
...

