Browse Source

Missing `timeout` parameter from the REST API spec JSON files (#28328)

Closes #28200
Andrew Odendaal 7 năm trước cách đây
mục cha
commit
f207aacac0

+ 4 - 0
rest-api-spec/src/main/resources/rest-api-spec/api/tasks.get.json

@@ -16,6 +16,10 @@
         "wait_for_completion": {
           "type": "boolean",
           "description": "Wait for the matching tasks to complete (default: false)"
+        },
+        "timeout": {
+          "type": "time",
+          "description": "Explicit operation timeout"
         }
       }
     },

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

@@ -32,6 +32,10 @@
           "description": "Group tasks by nodes or parent/child relationships",
           "options" : ["nodes", "parents", "none"],
           "default" : "nodes"
+        },
+        "timeout": {
+          "type": "time",
+          "description": "Explicit operation timeout"
         }
 
       }