Web API: Using api/measures/ how do i GET code coverage for multiple componentKeys (projects)?

Can i use api/measures/component witht multiple componentKeys so i can return code coverage for more than just 1 repo?

What would be an example format when searching for more than just 1 componentKey?

Or, can i retrieve code coverage for all projects in my org, using another method?


Welcome to the community!

Have you tried it?


Yes, i can’t find a solution to retrieve multiple componentKeys with their respective code coverage values.

Please can you give me a hint, it would be an early xmas present for me.



The web services were built to service the UI. So if you don’t see something happen in the UI, it’s likely not doable via the API. That said, multiple projects are displayed together - with measures - on the projects page.

The best way to master the API is to perform the desired action via the UI and eavesdrop to see which calls the UI made to accomplish the action.

You may also find this guide helpful.