List of source with web API

Hello
I Have a Excel File where I have writed VBA macro to obtain informations from my projects SonarQube (metrics, rules), I use WEB API fot that.
Now I would like to obtain the list of sources of my project.
I don’t find the command to obtain this list.
Is it possible ?
Thank a lot.

Hi @FredAubert,

If you’re looking for the list of files, take a look at the documentation for api/components/search. You can narrow the search by project and by qualifier (FIL= files) to find what you want.

If you’re after the source code itself, the api/sources family probably has what you’re looking for.

Regards,

Cameron.