Skip to content
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

Merged
merged 3 commits into from
May 27, 2022

Conversation

wangyao2016
Copy link
Contributor

Append new api:
drop graph、create snapshot、resume snapshot、compact、get|modify graph_read_mode.

And translate graphs.md

##### Method & Url

```
POST http:https://localhost:8080/graphs/hugegraph_clone?clone_graph_name=hugegraph
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

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 手动紧致图,**该操作需要管理员权限**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

手动压缩图

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@javeme
Copy link
Contributor

javeme commented May 26, 2022

@wangyao2016 Thanks for your contribution. some tiny comments

@@ -74,6 +74,64 @@ DELETE http:https://localhost:8080/graphs/hugegraph/clear?confirm_message=I%27m+sure+t
204
```

#### 6.1.4 创建一个图,**该操作需要管理员权限**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以分为"创建图"和"克隆图"两个来说明(描述本身也可增加到文档中去):

  1. 当传递了clone_graph_name参数时,表示需要从已有的图来克隆图,此时用户可选择传递配置文件,也可选择不传递配置文件;
  2. 当未传递传递了clone_graph_name参数时,表示创建一个全新的图,此时必须传递配置文件。

克隆图不传递配置文件例子:https://github.com/apache/incubator-hugegraph-toolchain/blob/master/hugegraph-client/src/test/java/com/baidu/hugegraph/api/GraphsApiTest.java#L209

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, thanks.

@imbajin imbajin merged commit 665739b into apache:website May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants