跳转到主要内容

文档 1.5 版本已不再积极维护,你当前浏览的是一份归档快照。 最新文档请参阅 最新版本。

Variable API

5.1 Variables

Variables可以用来存储有关整个图的数据,数据按照键值对的方式存取

5.1.1 创建或者更新某个键值对

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

5.1.2 列出全部键值对

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

5.1.3 列出某个键值对

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

5.1.4 删除某个键值对

Method & Url
1DELETE http://localhost:8080/graphs/hugegraph/variables/name
Response Status
1204