如何从sonarqube的api/指标中获取Json? [英] How to Get a Json from api/metrics of sonarqube?
问题描述
我试图使用api/metrics的GET方法来检索要用于我的程序的JSON,但是文档缺少描述在requestUrl中使用的所有参数的信息.
I tried to use the GET method of api/metrics to retrieve a JSON to use for my program, but the documentation lack to describe all the parameter to use in the requestUrl.
例如,在我的程序中,我使用Google Chrome控制台发现requestUrl就是这样的:
for example in for my program I find, using the Google Chrome console, that the requestUrl is this one:
是否可以找到更详细的文档,或者我尝试解决问题的方法不正确?
is it possible to find a more detailed documentation or the way I try to solve my problem is not the correct one?
推荐答案
只需将&format=json
添加到参数中即可.
Just add &format=json
to the parameters.
请参见 http://docs.sonarqube.org/display /SONARQUBE43/Web + Service + API#WebServiceAPI-ResponseFormats
这篇关于如何从sonarqube的api/指标中获取Json?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!