Versions Compared

Key

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

...

Examples

  1. Get source code of 'org.codehaus.sonar: all the versions from project Sonar (key = org.codehaus.sonar:sonar):sonar-plugin-api:org.sonar.api.measures.CoreMetrics' from line 10 to 20:

    Code Block
    languagenone
    GET http://nemo.sonarsource.org/api/sources?resource=org.codehaus.sonar:sonar-plugin-api:org.sonar.api.measures.MetricCoreMetrics&from=10&to=20

Parameters

Parameter

Description

Required

Default Value

resource

id or key of the resource

Yes

None

from

First line to display

No

None

to

Last line to display (inclusive)

No

None

color

Highlights code syntax if true.
Possible values: true | false 

No

false
formatResponse formats: xml or json or txtNoxml