What is sonarqube logon webapi

2019-09-12 06:00发布

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条回答
Rolldiameter
2楼-- · 2019-09-12 06:43

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

查看更多
登录 后发表回答