私は REST API を初めて使用します**(これは本当に REST の問題ですか?)**
Cypher を使用して neo4js からすべてのノードを取得したい
START n = node(*)
return n;
jquery ajax POST または GET メソッドを使用する場合の使用方法
ドキュメントでそれをお勧めします
POST http://localhost:7474/db/data/cypher
Accept: application/json
Content-Type: application/json
私のコードで私は書く
$.ajax({
type:"POST",
url: "http://localhost:7474/db/data/cypher",
accepts: "application/json",
dataType:"json",
contentType:"application/json",
data:{
"query" : "start n = node(*) return n",
"params" : {}
},
success: function(data, textStatus, jqXHR){
alert(textStatus);
},
error:function(jqXHR, textStatus, errorThrown){
alert(textStatus);
}
});//end of placelist ajax
私の問題は何ですか?エラーアラートは以下です