From 6b22a0d3666570b9db1c8feaf0f660a99a1937c9 Mon Sep 17 00:00:00 2001 From: wangyao Date: Thu, 12 May 2022 21:24:05 +0800 Subject: [PATCH] fix: wrong request body simple in propertykey.md --- clients/restful-api/propertykey.md | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/clients/restful-api/propertykey.md b/clients/restful-api/propertykey.md index 9a02887d9..ecd4cd88d 100644 --- a/clients/restful-api/propertykey.md +++ b/clients/restful-api/propertykey.md @@ -25,12 +25,9 @@ POST http://localhost:8080/graphs/hugegraph/schema/propertykeys ```json { - "property_key" : { - "name": "age", - "data_type": "INT", - "cardinality": "SINGLE" - }, - "task_id": 0 + "name": "age", + "data_type": "INT", + "cardinality": "SINGLE" } ``` @@ -69,14 +66,11 @@ PUT http://localhost:8080/graphs/hugegraph/schema/propertykeys/age?action=append ```json { - "property_key" : { - "name": "age", - "user_data": { - "min": 0, - "max": 100 - } - }, - "task_id" : 0 + "name": "age", + "user_data": { + "min": 0, + "max": 100 + } } ```