N1QL Rest API返回404

问题描述 投票:1回答:1

我尝试使用N1QL查询作为REST API端点来访问数据,但收到404错误。需要在Couchbase服务器中进行配置以支持N1Q1 Rest API吗?

http://127.0.0.1:8091/query/service?statement=select%20a.name,r.destinationairport,%20count(a.name)%20total_flights%20from%20travel-sample%20r%20join%20travel-sample%20a%20on%20keys%20r.airlineid%20where%20r.type%20=%22route%22%20and%20a.type=%22airline%22%20group%20by%20r.destinationairport,%20a.name%20order%20by%20r.destinationairport

couchbase n1ql
1个回答
1
投票
travel-sample

查询服务正在8093端口上运行。此外,您必须将REST API发送到8093端口。

您也可以尝试这个。

travel-sample
© www.soinside.com 2019 - 2024. All rights reserved.