Skip to content

Commit

Permalink
Drop deprecated _esql API endpoint (elastic#105029)
Browse files Browse the repository at this point in the history
Drop initial and now deprecated `_esql` API endpoint, replaced by `_query`.
  • Loading branch information
bpintea authored Feb 1, 2024
1 parent 81f0c20 commit 1091f71
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
package org.elasticsearch.xpack.esql.action;

import org.elasticsearch.client.internal.node.NodeClient;
import org.elasticsearch.core.RestApiVersion;
import org.elasticsearch.logging.LogManager;
import org.elasticsearch.logging.Logger;
import org.elasticsearch.rest.BaseRestHandler;
Expand Down Expand Up @@ -36,11 +35,7 @@ public String getName() {

@Override
public List<Route> routes() {
return List.of(
new Route(POST, "/_query"),
// TODO: remove before release
Route.builder(POST, "/_esql").deprecated("_esql endpoint has been deprecated in favour of _query", RestApiVersion.V_8).build()
);
return List.of(new Route(POST, "/_query"));
}

@Override
Expand Down

0 comments on commit 1091f71

Please sign in to comment.