Skip to content

Commit 5a0eb80

Browse files
olcbeanjavanna
authored andcommitted
Fix inconsistencies in the rest api specs for tasks (#27163)
modify parameters names to reflect the changes done in the code base
1 parent 0fa577a commit 5a0eb80

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
}
1313
},
1414
"params": {
15-
"node_id": {
15+
"nodes": {
1616
"type": "list",
1717
"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"
1818
},
@@ -24,7 +24,7 @@
2424
"type": "string",
2525
"description": "Cancel tasks with specified parent node."
2626
},
27-
"parent_task": {
27+
"parent_task_id": {
2828
"type" : "string",
2929
"description" : "Cancel tasks with specified parent task id (node_id:task_number). Set to -1 to cancel all."
3030
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"paths": ["/_tasks"],
88
"parts": {},
99
"params": {
10-
"node_id": {
10+
"nodes": {
1111
"type": "list",
1212
"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"
1313
},
@@ -23,7 +23,7 @@
2323
"type": "string",
2424
"description": "Return tasks with specified parent node."
2525
},
26-
"parent_task": {
26+
"parent_task_id": {
2727
"type" : "string",
2828
"description" : "Return tasks with specified parent task id (node_id:task_number). Set to -1 to return all."
2929
},

0 commit comments

Comments
 (0)