You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> - HugeGraph 1.5.x and earlier still rely on the legacy `/graphs/{graph}` path, and the create/clone graph APIs require `Content-Type: text/plain`; 1.7.0+ expects JSON bodies.
11
11
> - The default graphspace name is `DEFAULT`, which you can use directly if you do not need multi-tenant isolation.
12
+
> -**Note**: Before version 1.5.0, the format of ids such as group/target was similar to -69:grant. After version 1.7.0, the id and name were consistent, such as admin [HugeGraph 1.5.x RESTful API](https://github.com/apache/incubator-hugegraph-doc/tree/release-1.5.0)
13
+
12
14
13
15
Besides the documentation below, you can also open `swagger-ui` at `localhost:8080/swagger-ui/index.html` to explore the RESTful API. [Here is an example](/docs/quickstart/hugegraph/hugegraph-server#swaggerui-example)
Copy file name to clipboardExpand all lines: content/en/docs/clients/restful-api/auth.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ Description: User 'boss' has read permission for people in the 'graph1' graph fr
17
17
18
18
##### Interface Description:
19
19
The user authentication and access control interface includes 5 categories: UserAPI, GroupAPI, TargetAPI, BelongAPI, AccessAPI.
20
+
**Note** Before 1.5.0, the format of ids such as group/target was similar to -69:grant. After 1.7.0, the id and name were consistent. Such as admin [HugeGraph 1.5 x RESTful API](https://github.com/apache/incubator-hugegraph-doc/tree/release-1.5.0)
20
21
21
22
### 10.2 User (User) API
22
23
The user interface includes APIs for creating users, deleting users, modifying users, and querying user-related information.
Copy file name to clipboardExpand all lines: content/en/docs/clients/restful-api/graphs.md
+95-26Lines changed: 95 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,12 +8,18 @@ weight: 12
8
8
9
9
**Important Reminder**: Since HugeGraph 1.7.0, dynamic graph creation must enable authentication mode. For non-authentication mode, please refer to [Graph Configuration File](https://hugegraph.apache.org/docs/config/config-guide/#4-hugegraphproperties) to statically create graphs through configuration files.
10
10
11
-
#### 6.1.1 List all graphs
11
+
#### 6.1.1 List all graphs in the graphspace
12
+
13
+
##### Params
14
+
15
+
**Path parameters**
16
+
17
+
- graphspace: Graphspace name
12
18
13
19
##### Method & Url
14
20
15
21
```
16
-
GET http://localhost:8080/graphs
22
+
GET http://localhost:8080/graphspaces/DEFAULT/graphs
17
23
```
18
24
19
25
##### Response Status
@@ -35,6 +41,13 @@ GET http://localhost:8080/graphs
35
41
36
42
#### 6.1.2 Get details of the graph
37
43
44
+
##### Params
45
+
46
+
**Path parameters**
47
+
48
+
- graphspace: Graphspace name
49
+
- graph: Graph name
50
+
38
51
##### Method & Url
39
52
40
53
```
@@ -56,15 +69,18 @@ GET http://localhost:8080/graphspaces/DEFAULT/graphs/hugegraph
56
69
}
57
70
```
58
71
59
-
#### 6.1.3 Clear all data of a graph, include: schema, vertex, edge and index .etc.,**This operation
60
-
61
-
requires administrator privileges**
72
+
#### 6.1.3 Clear all data of a graph, include: schema, vertex, edge and index, **This operation requires administrator privileges**
62
73
63
74
##### Params
64
75
65
-
Since emptying the graph is a dangerous operation, we have added parameters for confirmation to the
66
-
API to
67
-
avoid false calls by users:
76
+
**Path parameters**
77
+
78
+
- graphspace: Graphspace name
79
+
- graph: Graph name
80
+
81
+
**Query parameters**
82
+
83
+
Since emptying the graph is a dangerous operation, we have added parameters for confirmation to the API to avoid false calls by users:
68
84
69
85
- confirm_message: default by `I'm sure to delete all data`
To clone from an existing graph, the user can choose to transfer the configuration file,
89
-
which will replace the configuration in the existing graph
103
+
**Path parameters**
104
+
105
+
- graphspace: Graphspace name
106
+
- graph: Name of the new graph to create
107
+
108
+
**Query parameters**
109
+
110
+
- clone_graph_name: name of an existed graph. To clone from an existing graph, the user can choose to transfer the configuration file, which will replace the configuration in the existing graph
0 commit comments