فهرست منبع

Fix inconsistencies in the rest api specs for `tasks` (#27163)

modify parameters names to reflect the changes done in the code base
olcbean 8 سال پیش
والد
کامیت
e440e23ad1

+ 2 - 2
rest-api-spec/src/main/resources/rest-api-spec/api/tasks.cancel.json

@@ -12,7 +12,7 @@
         }
       },
       "params": {
-        "node_id": {
+        "nodes": {
           "type": "list",
           "description": "A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes"
         },
@@ -24,7 +24,7 @@
           "type": "string",
           "description": "Cancel tasks with specified parent node."
         },
-        "parent_task": {
+        "parent_task_id": {
           "type" : "string",
           "description" : "Cancel tasks with specified parent task id (node_id:task_number). Set to -1 to cancel all."
         }

+ 2 - 2
rest-api-spec/src/main/resources/rest-api-spec/api/tasks.list.json

@@ -7,7 +7,7 @@
       "paths": ["/_tasks"],
       "parts": {},
       "params": {
-        "node_id": {
+        "nodes": {
           "type": "list",
           "description": "A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes"
         },
@@ -23,7 +23,7 @@
           "type": "string",
           "description": "Return tasks with specified parent node."
         },
-        "parent_task": {
+        "parent_task_id": {
           "type" : "string",
           "description" : "Return tasks with specified parent task id (node_id:task_number). Set to -1 to return all."
         },