0
我正在使用邮递员和Javascript查询Cloud atlassian.net帐户上的Confluence API。Confluence REST API搜索 - 编码时编码CQL查询时出错
当我在CQL它为我的空间的场所使用+
(所以这是不工作的授权的问题 - 这个作品!):
https://mycompany.atlassian.net:443/confluence/rest/api/content/search?os_authType=basic&cql=type=page+and+space+in+(DEV,OPS)+and+title+~+deploy
但是使用空间不:
https://mycompany.atlassian.net:443/confluence/rest/api/content/search?os_authType=basic&cql=type=page and space in (DEV,OPS) and title ~ deploy
也不编码版本:
https://mycompany.atlassian.net:443/confluence/rest/api/content/search?os_authType=basic&cql=type=page%20and%20space%20in%20(DEV,OPS)%20and%20title%20~%20deploy
他们都水库在documentation我看没有提到需要使用+
我只能基于以下一个question on Atlassian Answers的讨论gleen这种基于
{
"statusCode": 400,
"data": {
"authorized": false,
"valid": true,
"errors": [],
"successful": false
},
"message": "Could not parse cql : type=page%20and%20space%20in(DEV,OPS)%20and%20title~deploy"
}
:ULT英寸
的长处都很好,但我需要使用模糊搜索来搜索多个术语所以像:
title+~+deploy+my+app
会导致:
"message": "Could not parse cql : type=page%20and%20space%20in(DEV,OPS)%20and%20title~deploy my app"
和:
title+~+"deploy+my+app"
将导致:
"message": "Could not parse cql : type=page%20and%20space%20in(DEV,OPS)%20and%20title~%22deploy my app%22"
有没有办法为这个云应用程序搜索多字字符串?
您是否尝试过使用AND或OR查询? 'title +〜+“部署或我的OR应用程序”' – ppasler
@ppasier谢谢,好想法。同样的结果,因为引号和空格需要编码。 –