Variable API

5.1 Variables

Variables can be used to store data about the entire graph. The data is accessed and stored in the form of key-value pairs.

5.1.1 Creating or Updating a Key-Value Pair

Method & Url
PUT http://localhost:8080/graphs/hugegraph/variables/name 
Request Body
{  "data": "tom" } 
Response Status
200 
Response Body
{  "name": "tom" } 

5.1.2 Listing all key-value pairs

Method & Url
GET http://localhost:8080/graphs/hugegraph/variables 
Response Status
200 
Response Body
{  "name": "tom" } 

5.1.3 Listing a specific key-value pair

Method & Url
GET http://localhost:8080/graphs/hugegraph/variables/name 
Response Status
200 
Response Body
{  "name": "tom" } 

5.1.4 Deleting a specific key-value pair

Method & Url
DELETE http://localhost:8080/graphs/hugegraph/variables/name 
Response Status
204 
Last modified May 21, 2023: Update variable.md (#248) (0e7a6a9d)