From 2d62b4f09bdf0983d7be20da426096bf75ed54f3 Mon Sep 17 00:00:00 2001 From: Sensor Date: Mon, 11 Mar 2024 15:49:14 +0800 Subject: [PATCH] docs refinement: json format (#16080) * docs refinement: json format * Update docs/api-reference/tasks-api.md Co-authored-by: Kashif Faraz --------- Co-authored-by: Kashif Faraz --- docs/api-reference/tasks-api.md | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/api-reference/tasks-api.md b/docs/api-reference/tasks-api.md index 9ccde5bf9d7..4856e6ddf90 100644 --- a/docs/api-reference/tasks-api.md +++ b/docs/api-reference/tasks-api.md @@ -894,20 +894,20 @@ Host: http://ROUTER_IP:ROUTER_PORT ```json { - 'task': 'query-223549f8-b993-4483-b028-1b0d54713cad', - 'status': { - 'id': 'query-223549f8-b993-4483-b028-1b0d54713cad', - 'groupId': 'query-223549f8-b993-4483-b028-1b0d54713cad', - 'type': 'query_controller', - 'createdTime': '2023-06-22T22:11:28.367Z', - 'queueInsertionTime': '1970-01-01T00:00:00.000Z', - 'statusCode': 'RUNNING', - 'status': 'RUNNING', - 'runnerStatusCode': 'RUNNING', - 'duration': -1, - 'location': {'host': 'localhost', 'port': 8100, 'tlsPort': -1}, - 'dataSource': 'wikipedia_api', - 'errorMsg': None + "task": "query-223549f8-b993-4483-b028-1b0d54713cad", + "status": { + "id": "query-223549f8-b993-4483-b028-1b0d54713cad", + "groupId": "query-223549f8-b993-4483-b028-1b0d54713cad", + "type": "query_controller", + "createdTime": "2023-06-22T22:11:28.367Z", + "queueInsertionTime": "1970-01-01T00:00:00.000Z", + "statusCode": "RUNNING", + "status": "RUNNING", + "runnerStatusCode": "RUNNING", + "duration": -1, + "location": {"host": "localhost", "port": 8100, "tlsPort": -1}, + "dataSource": "wikipedia_api", + "errorMsg": null } } ``` @@ -1429,7 +1429,7 @@ Host: http://ROUTER_IP:ROUTER_PORT ```json { - 'task': 'query-577a83dd-a14e-4380-bd01-c942b781236b' + "task": "query-577a83dd-a14e-4380-bd01-c942b781236b" } ```