What is sonarqube logon webapi

假装没事ソ 提交于 2020-01-06 19:56:06

问题


We are using Sonarqube version 4.5. Using curl call I am trying to log on to sonar qube server but I am getting "authenication" error. What is a webapi call to logon to SonarQube server?


回答1:


There is no dedicated 'login API', SonarQube Web Services use basic HTTP authentication (for the Web Services that do require authentication). So you just need to provide your credentials within the HTTP request itself, e.g. with curl:

curl -u admin:admin http://localhost:9000/api/server/system



来源:https://stackoverflow.com/questions/34908563/what-is-sonarqube-logon-webapi

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!