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 which contains two methods a,b. Is there a way(api) to retrieve starting, end lines and coverage details for the above mentioned methods.


Using the SonarQube web services, you can get :

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

Julien Lancelot