1.1.1 创建一个 PropertyKey

    Method & Url
    Request Body
    1. "name": "age",
    2. "data_type": "INT",
    3. "cardinality": "SINGLE"
    4. }
    Response Status
    1. 201
    Response Body
    1. {
    2. "id": 2,
    3. "name": "age",
    4. "data_type": "INT",
    5. "cardinality": "SINGLE",
    6. "properties": [],
    7. "user_data": {}
    8. }

    1.1.2 为已存在的 PropertyKey 添加或移除 userdata

    Params
    • action: 表示当前行为是添加还是移除,取值为(添加)和eliminate(移除)
    Method & Url
    1. PUT http://localhost:8080/graphs/hugegraph/schema/propertykeys/age?action=append
    Request Body
    Response Status
    1. 201
    Response Body
    1. {
    2. "id": 2,
    3. "data_type": "INT",
    4. "cardinality": "SINGLE",
    5. "properties": [],
    6. "user_data": {
    7. "min": 0,
    8. "max": 100
    9. }

    1.1.3 获取所有的 PropertyKey

    Method & Url
    1. GET http://localhost:8080/graphs/hugegraph/schema/propertykeys
    Response Status
    1. 200
    Response Body

    1.1.4 根据name获取PropertyKey

    Method & Url
    1. GET http://localhost:8080/graphs/hugegraph/schema/propertykeys/age
    Response Status
    1. 200
    Response Body
    1. {
    2. "id": 2,
    3. "name": "age",
    4. "data_type": "INT",
    5. "cardinality": "SINGLE",
    6. "properties": [],
    7. "user_data": {}
    8. }

    1.1.5 根据name删除PropertyKey

    Method & Url

      其中,age为要获取的PropertyKey的名字

      Response Status