配置Postman以调用Neo4j API

huangapple go评论56阅读模式
英文:

Configure Postman to call Neo4j API

问题

我正在尝试配置 Postman 来测试 Neo4j API 调用,并且正在使用这个链接作为唯一的帮助:

https://neo4j.com/developer/kb/a-lightweight-approach-to-testing-the-neo4j-rest-api-with-authentication/

这是一个使用本地实例而不是 Aura 的示例。

这是我在通过 JavaScript 和 Neo4j 驱动程序连接时使用的 URL:

neo4j+s://4c7b0c8b.databases.neo4j.io

它给了我这个错误:

GET neo4j+s://4c7b0c8b.databases.neo4j.io/
错误: 无效协议: neo4j+s:
请求头
授权: 基本 bmVvNGo6STYzMGxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0xfSFZURlUyNA==
用户代理: PostmanRuntime/7.31.3
接受: /
Postman-Token: 6e90541b-465a-4c64-926e-22af04d41258
主机: 4c7b0c8b.databases.neo4j.io
接受编码: gzip, deflate, br
连接: 保持活动

显然它不喜欢 "neo4j+s:"。

是否可能提供逐步说明以配置 Postman 连接到 Aura?

谢谢。

英文:

I'm trying to configure Postman to test Neo4j API calls and am using this link which is the only thing I have found for help on this:

https://neo4j.com/developer/kb/a-lightweight-approach-to-testing-the-neo4j-rest-api-with-authentication/

Its an example of using a local instance rather than Aura

This is the URL I use when connecting via javascript and the Neo4j driver:

neo4j+s://4c7b0c8b.databases.neo4j.io

which gives me this error

GET neo4j+s://4c7b0c8b.databases.neo4j.io/
Error: Invalid protocol: neo4j+s:
Request Headers
Authorization: Basic bmVvNGo6STYzMGxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0xfSFZURlUyNA==
User-Agent: PostmanRuntime/7.31.3
Accept: */*
Postman-Token: 6e90541b-465a-4c64-926e-22af04d41258
Host: 4c7b0c8b.databases.neo4j.io
Accept-Encoding: gzip, deflate, br
Connection: keep-alive

Evidently it does not like "neo4j+s:".

Is possible to get step by step instrucitons on configuring Postman to connect to Aura?

Thanks.

答案1

得分: 1

你引用的文章是针对 neo4j 3.5 的。

Aura 的当前版本不支持 HTTP API

而且无论如何,HTTP API 使用 httphttps 协议。

英文:

The article you cited was for neo4j 3.5.

Current versions of Aura do not support the HTTP API.

And in any case, the HTTP API uses the http or https protocols.

huangapple
  • 本文由 发表于 2023年4月7日 04:24:27
  • 转载请务必保留本文链接:https://go.coder-hub.com/75953487.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定