LoginSignup
0
0

More than 5 years have passed since last update.

Neo4jにPostmanからGET,POSTできるようにする

Last updated at Posted at 2018-10-04

前提条件

Neo4jの環境構築済(ブラウザからlocalhost:7474で管理画面に入れる)

事象

何も考えずに公式ドキュメント通りにAPIを叩くと以下のエラーレスポンスが返ってくる。

{
    "errors": [
        {
            "code": "Neo.ClientError.Security.Unauthorized",
            "message": "No authentication header supplied."
        }
    ]
}

neo4j-get-error.jpg

The Neo4j REST API Documentation v3.4

というわけで、認証のエラーを回避する。

認証を設定する

PostmanのAuthenticationタブからBasic Authを選択。
必要な認証情報を書く

ユーザー名のデフォルトはneo4j

パスワードは初回ログイン時に決めたもの

認証設定.jpg

これでNeo4jに対してGETやPOSTができるようになります。
認証後.jpg

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0