@@ -112,25 +112,25 @@ DELETE http://localhost:8080/graphspaces/DEFAULT/graphs/hugegraph/clear?confirm_
112112##### Method & Url
113113
114114```
115- POST http://localhost:8080/graphspaces/DEFAULT/graphs/hugegraph_clone ?clone_graph_name=hugegraph
115+ POST http://localhost:8080/graphspaces/DEFAULT/graphs/cloneGraph ?clone_graph_name=hugegraph
116116```
117117
118118##### Request Body [ Optional]
119119
120120Clone a ` non-auth ` mode graph (set ` Content-Type: application/json ` )
121121
122- ``` json
122+ ``` javascript
123123{
124124 " gremlin.graph" : " org.apache.hugegraph.HugeFactory" ,
125125 " backend" : " rocksdb" ,
126126 " serializer" : " binary" ,
127- "store" : " hugegraph " ,
127+ " store" : " cloneGraph " ,
128128 " rocksdb.data_path" : " ./rks-data-xx" ,
129129 " rocksdb.wal_path" : " ./rks-data-xx"
130130}
131131```
132132
133- > Note:
133+ > Note:
134134> 1 . The data/wal_path can't be the same as the existing graph (use separate directories)
135135> 2 . Replace "gremlin.graph=org.apache.hugegraph.auth.HugeFactoryAuthProxy" to enable auth mode
136136
@@ -144,8 +144,8 @@ Clone a `non-auth` mode graph (set `Content-Type: application/json`)
144144
145145``` javascript
146146{
147- " name" : " hugegraph_clone " ,
148- " backend" : " rocksdb"
147+ " name" : " cloneGraph " ,
148+ " backend" : " rocksdb"
149149}
150150```
151151
@@ -166,11 +166,21 @@ POST http://localhost:8080/graphspaces/DEFAULT/graphs/hugegraph2
166166
167167##### Request Body
168168
169- Create a non-auth graph (set ` Content-Type: application/json ` )
169+ Create a graph (set ` Content-Type: application/json ` )
170+
171+ ** ` gremlin.graph ` Configuration:**
172+ - Auth mode: ` "gremlin.graph": "org.apache.hugegraph.auth.HugeFactoryAuthProxy" ` (Recommended)
173+ - Non-auth mode: ` "gremlin.graph": "org.apache.hugegraph.HugeFactory" `
174+
175+ ** Note** !!
176+ 1 . In version 1.7.0, dynamic graph creation would cause a NPE. This issue has been fixed in [ PR #2912 ] ( https://github.com/apache/incubator-hugegraph/pull/2912 ) . The current master version and versions after 1.7.0 do not have this problem.
177+ 2 . For version 1.7.0 and earlier, if the backend is hstore, you must add "task.scheduler_type": "distributed" in the request body. Also ensure HugeGraph-Server is properly configured with PD, see [ HStore Configuration] ( /docs/quickstart/hugegraph/hugegraph-server/#511-distributed-storage-hstore ) .
178+
179+ ** RocksDB Example:**
170180
171- ``` json
181+ ``` javascript
172182{
173- "gremlin.graph" : " org.apache.hugegraph.HugeFactory " ,
183+ " gremlin.graph" : " org.apache.hugegraph.auth.HugeFactoryAuthProxy " ,
174184 " backend" : " rocksdb" ,
175185 " serializer" : " binary" ,
176186 " store" : " hugegraph2" ,
@@ -179,9 +189,20 @@ Create a non-auth graph (set `Content-Type: application/json`)
179189}
180190```
181191
182- > Note:
183- > 1 . The data/wal_path can't be the same as the existing graph (use separate directories)
184- > 2 . Replace "gremlin.graph=org.apache.hugegraph.auth.HugeFactoryAuthProxy" to enable auth mode
192+ ** HStore Example (for version 1.7.0 and earlier):**
193+
194+ ``` javascript
195+ {
196+ " gremlin.graph" : " org.apache.hugegraph.auth.HugeFactoryAuthProxy" ,
197+ " backend" : " hstore" ,
198+ " serializer" : " binary" ,
199+ " store" : " hugegraph2" ,
200+ " task.scheduler_type" : " distributed" ,
201+ " pd.peers" : " 127.0.0.1:8686"
202+ }
203+ ```
204+
205+ > Note: The data/wal_path can't be the same as the existing graph (use separate directories)
185206
186207##### Response Status
187208
@@ -216,7 +237,7 @@ Since deleting a graph is a dangerous operation, we have added parameters for co
216237##### Method & Url
217238
218239```
219- DELETE http://localhost:8080/graphspaces/DEFAULT/graphs/hugegraph_clone ?confirm_message=I%27m%20sure%20to%20drop%20the%20graph
240+ DELETE http://localhost:8080/graphspaces/DEFAULT/graphs/graphA ?confirm_message=I%27m%20sure%20to%20drop%20the%20graph
220241```
221242
222243##### Response Status
0 commit comments