我正在尝试使用 Web Service API - 特别是f
API的参数GET api/issues/search
。
文档说我可以使用它来指定要返回的字段。
但我无法让它工作。我不断收到下面的错误响应。这个参数还不支持吗?我的 Sonarqube 部署是 5.0.1 版。
{"errors":[{"msg":"Value of parameter 'f' (KEY) must be one of: []"}]}
这是我的要求:
{
url: sonarHostUrl + "/api/issues/search",
type: "GET",
data:
{
assigned: "true",
componentRoots: projectKey,
statuses: "OPEN,CONFIRMED,REOPENED",
ps: "-1",
hideRules: "true",
ignorePaging: "true",
s: "SEVERITY",
f: "KEY,SEVERITY,ASSIGNEE"
}
}