Sonar WebApi 不全,抓API的如何使用
抓首页的api
https://myip/api/components/search_projects?ps=50&facets=reliability_rating,security_rating,security_review_rating,sqale_rating,coverage,duplicated_lines_density,ncloc,alert_status,languages,tags,qualifier&f=analysisDate,leakPeriodDate&filter=query = "devcloud"&s=analysisDate&asc=false
var base64encodedData = ("admin:admin").toString('base64');
request.open("POST", "http://localhost:9000/api/qualityprofiles/copy?fromKey=" + fromKey + "&toName=" + name, true);
request.setRequestHeader("Authorization", "Basic " + base64encodedData);
request.send();
The response is 405, no method found.
使用postman
文章来源: blog.csdn.net,作者:隔壁老瓦,版权归原作者所有,如需转载,请联系作者。
原文链接:blog.csdn.net/wxb880114/article/details/126758487
- 点赞
- 收藏
- 关注作者
评论(0)