Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Use CaseExample Request
Get all the projects

GET http://nemo.sonarsource.org/api/resources

For each project, get lines of code and code coverage measures
Get lines of code and code coverage measures for project org.codehaus.sonar:sonar
GET http://nemo.sonarsource.org/api/resources?resource=org.codehaus.sonar:sonar&metrics=ncloc,coverage
Get all the resources included in project org.codehaus.sonar:sonar: packages, files, etc.
GET http://nemo.sonarsource.org/api/resources?resource=org.codehaus.sonar:sonar&depth=-1
Get all the files included in project org.codehaus.sonar:sonar

GET http://nemo.sonarsource.org/api/resources?resource=org.codehaus.sonar:sonar&depth=-1&scopescopes=FIL

Hotspot of the ten files with the worst code coverage for project org.codehaus.sonar:sonar

GET http://nemo.sonarsource.org/api/resources?resource=org.codehaus.sonar:sonar&depth=-1&scopescopes=FIL&metrics=coverage&limit=10

Get lines of code measure of direct children of org.codehaus.sonar:sonar

GET http://nemo.sonarsource.org/api/resources?resource=org.codehaus.sonar:sonar&depth=1&metrics=ncloc

...