GET http://localhost:8080/graphs
200
{ "graphs": [ "hugegraph", "hugegraph1" ] }
GET http://localhost:8080/graphs/hugegraph
200
{ "name": "hugegraph", "backend": "cassandra" }
由于清空图是一个比较危险的操作,为避免用户误调用,我们给API添加了用于确认的参数:
I'm sure to delete all data
DELETE http://localhost:8080/graphs/hugegraph/clear?confirm_message=I%27m+sure+to+delete+all+data
204
GET http://localhost:8080/graphs/hugegraph/conf
200
# gremlin entrence to create graph gremlin.graph=com.baidu.hugegraph.HugeFactory # cache config #schema.cache_capacity=1048576 #graph.cache_capacity=10485760 #graph.cache_expire=600 # schema illegal name template #schema.illegal_name_regex=\s+|~.* #vertex.default_label=vertex backend=cassandra serializer=cassandra store=hugegraph ...
GET http://localhost:8080/graphs/hugegraph/mode
200
{ "mode": "NONE" }
合法的图模式包括:NONE,RESTORING,MERGING
PUT http://localhost:8080/graphs/hugegraph/mode
"RESTORING"
合法的图模式包括:NONE,RESTORING,MERGING
200
{ "mode": "RESTORING" }