incubator-hugegraph icon indicating copy to clipboard operation
incubator-hugegraph copied to clipboard

使用Rest API 创建点边报错:HTTP 415

Open bingle2000 opened this issue 7 years ago • 1 comments

按RESTFUL API可以查询,但是创建点和边时都报错误:HTTP 415 Unsupported Media Type。如下:

[root@localhost hugegraph-0.9.2]# curl -X POST http://localhost:8080/graphs/hugegraph/graph/vertices -d '

{ "label": "domain", "properties": { "DOMAIN": "www.soso.com" } }' {"exception":"class javax.ws.rs.NotSupportedException","message":"HTTP 415 Unsupported Media Type","cause":""}

@fuling1999

bingle2000 avatar May 16 '19 09:05 bingle2000

你得加上 -H "Content-Type:application/json"

Linary avatar May 16 '19 11:05 Linary