Skip to content

Commit 842a67e

Browse files
Update path params to query params
1 parent 78f5f3b commit 842a67e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/rest/action/admin/cluster/RestClusterAllocationExplainAction.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public boolean allowSystemIndexAccessByDefault() {
4848
}
4949

5050
/*
51-
The Cluster Allocation Explain API supports both path parameters and parameters passed through the request body, but not both.
51+
The Cluster Allocation Explain API supports both query parameters and parameters passed through the request body, but not both.
5252
The API also supports empty requests, which translates to "explain the first unassigned shard you find"
5353
*/
5454
@Override
@@ -61,7 +61,7 @@ public RestChannelConsumer prepareRequest(final RestRequest request, final NodeC
6161
ClusterAllocationExplainRequest.parse(clusterAllocationExplainRequest, parser);
6262
}
6363
}
64-
// There is no request body. Check for optionally supplied path parameters
64+
// There is no request body. Check for optionally supplied query parameters
6565
else {
6666
clusterAllocationExplainRequest.setIndex(
6767
request.param(

0 commit comments

Comments
 (0)