当我卷曲其余的api时,我得到一个空的响应,但我知道有拉请求打开 .
bitbucket存储中的设置是什么,允许任何人查看/读取拉取请求而不进行身份验证?
curl -X GET https://bitbucket/rest/api/1.0/projects/{project}/repos/{repo}/pull-requests
响应:
{
"size": 0,
"limit": 25,
"isLastPage": true,
"values": [],
"start": 0
}
1 回答
尝试curl -X GET https://bitbucket/rest/api/1.0/projects/ / repos / / pull-requests?state = ALL .
您可以在https://developer.atlassian.com/static/rest/bitbucket-server/latest/bitbucket-rest.html#idm140236731714560找到此特定API调用的更多选项