Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
DescriptionGet a list of violations

URL

/api/violations

MethodGET

Security

Requires User role on project

Examples

  1. Get all the versions violations from project Sonar (key = org.codehaus.sonar:sonar):

    Code Block
    languagenone
    GET http://nemo.sonarsource.org/api/eventsviolations?resource=org.codehaus.sonar:sonar&categoriesdepth=Version-1



  2. Get all the versions and alerts from project Sonar (key = org.codehaus.sonar:sonar between January 1st, 2012 and August 31st, 2012):

    Code Block
    languagenone
    GET http://nemo.sonarsource.org/api/events?resource=org.codehaus.sonar:sonar&categories=Alert,Version&fromDate=2012-01-01&toDate=2012-08-31



  3. Get global events from October 8th, 2012:

    Code Block
    languagenone
    GET http://localhost:9000/api/events?fromDate=2012-10-08



...