REST API to get new code coverage

Hi,
What is the REST API to get the new code metrics (quality gate ratings, code coverage and other metrics) ?
api/component/measures is providing only all code metrics/ratings.
Please clarify if there are options / ways to get this info.

Thanks
rsennat

Hi rsennat,

Have you tried this via the UI? 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.

 
Ann

Hi Ann, Sorry, how to try this via UI? I did not get that. Any pointers?

rsennat

Hi,

I would start by checking your project’s Measures page.

 
HTH,
Ann

I later figured out with info here,

/api/measures/component?component=<comp_name>&metricKeys=security_rating
/api/measures/component?component=<comp_name>&metricKeys=new_security_rating

/api/metrics/search

Similarly for all other metrics.

thanks
rsennat

1 Like