当我使用chrome扩展邮差测试时"17.11.1. Get or create unique node (create)" 我有一些例外:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 415 Unsupported Media Type</title>
</head>
<body>
<h2>HTTP ERROR 415</h2>
<p>Problem accessing /db/data/index/node/people. Reason:
<pre> Unsupported Media Type</pre>
</p>
<hr />
<i>
<small>Powered by Jetty://</small>
</i>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
</body>
我的测试参数:
http://127.0.0.1:7474/db/data/index/node/people?uniqueness=get_or_create
json数据
{
"key" : "name",
"value" : "Tobias",
"properties" : {
"name" : "Tobias",
"sequence" : 1
}
}
答案 0 :(得分:0)
是的,我发现问题,我的测试neo4j发布(1.8.2),但我参考了neo4j手册1.9.M05
neo4j手册的版本1.8.2
Create a unique node in an index
发布网址:POST http://127.0.0.1:7474/db/data/index/node/people?unique
但是neo4j手册的版本是1.9.m05
Create a unique node in an index
发布网址:POST http://127.0.0.1:7474/db/data/index/node/people?uniqueness=get_or_create
所以我得到了不支持的媒体类型错误。