How to get source code blocks using sonar rest api

Hi Team,

I am using SonarQube 6.7.4. I have a requirement in my project where I need to get source code block details using SonarQube rest api.
Let’s say we have a file abc.java which contains two methods a,b. Is there a way(api) to retrieve starting, end lines and coverage details for the above mentioned methods.

Hi,

Using the SonarQube web services, you can get :

But it’s not possible to give a specific method as input.

Regards,
Julien Lancelot