5.1.1 列出数据库中全部的图
Method & Url
Response Status
Response Body
{
"graphs": [
"hugegraph",
"hugegraph1"
]
}
5.1.2 查看某个图的信息
Method & Url
GET http://localhost:8080/graphs/hugegraph
Response Status
200
Response Body
{
"name": "hugegraph",
"backend": "cassandra"
}
5.1.3 清空某个图的全部数据,包括schema、vertex、edge和index等,该操作需要管理员权限
Params
- confirm_message: 默认为
I'm sure to delete all data
Method & Url
Response Status
204
5.2.1 查看某个图的配置,该操作需要管理员权限
Method & Url
Response Status
200
Response Body
# gremlin entrence to create graph
gremlin.graph=com.baidu.hugegraph.HugeFactory
#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
serializer=cassandra
store=hugegraph
...
5.3.1 查看某个图的模式. 该操作需要管理员权限
Method & Url
GET http://localhost:8080/graphs/hugegraph/mode
Response Status
Response Body
{
"mode": "NONE"
}
5.3.2 设置某个图的模式. 该操作需要管理员权限
Method & Url
PUT http://localhost:8080/graphs/hugegraph/mode
Request Body
"RESTORING"
Response Status
200
Response Body
{
"mode": "RESTORING"