当前位置 : 主页 > 网络编程 > PHP >

Sonar WebApi 不全,抓API的如何使用

来源:互联网 收集:自由互联 发布时间:2023-10-08
抓首页的api https://myip/api/components/search_projects?ps=50facets=reliability_rating,security_rating,security_review_rating,sqale_rating,coverage,duplicated_lines_density,ncloc,alert_status,languages,tags,qualifierf=analysisDate,leakP


抓首页的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

Sonar WebApi 不全,抓API的如何使用_测试工具

 

【感谢龙石为本站提供数据治理平台技术支撑 http://www.longshidata.com/pages/government.html】
网友评论