-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update:append new api for graphs & translate #136
Conversation
##### Method & Url | ||
|
||
``` | ||
POST http://localhost:8080/graphs/hugegraph_clone?clone_graph_name=hugegraph |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: add graph-create api desc, like https://github.com/apache/incubator-hugegraph-toolchain/blob/master/hugegraph-client/src/test/java/com/baidu/hugegraph/api/GraphsApiTest.java#L66
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add example for request body.
|
||
### 6.5 Compact | ||
|
||
#### 6.5.1 手动紧致图,**该操作需要管理员权限** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
手动压缩图
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@wangyao2016 Thanks for your contribution. some tiny comments |
@@ -74,6 +74,64 @@ DELETE http://localhost:8080/graphs/hugegraph/clear?confirm_message=I%27m+sure+t | |||
204 | |||
``` | |||
|
|||
#### 6.1.4 创建一个图,**该操作需要管理员权限** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以分为"创建图"和"克隆图"两个来说明(描述本身也可增加到文档中去):
- 当传递了clone_graph_name参数时,表示需要从已有的图来克隆图,此时用户可选择传递配置文件,也可选择不传递配置文件;
- 当未传递传递了clone_graph_name参数时,表示创建一个全新的图,此时必须传递配置文件。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, thanks.
Append new api:
drop graph、create snapshot、resume snapshot、compact、get|modify graph_read_mode.
And translate graphs.md