Stream/Download the content of a file where an issue is reported

Must-share information (formatted with Markdown):

  • SonarQube6.7.5
  • Want to download/stream a file where an issue is reported
  • Using WsClient the issues reported against a given rule id are obtained as given below.
    Would like to download or stream the component for which the issue is reported.

Hi,

you’ll get the sources via web api api/sources, e.g.
https://yoursonarhost/api/sources/raw?key=com.foo.bar%3AFoobar%3Asrc%2Fcom%2Ffoo%2Bar%2Whatever.java

Regards,
Gilbert