lib/elasticsearch/api/actions/cat/help.rb in elasticsearch-api-8.10.0 vs lib/elasticsearch/api/actions/cat/help.rb in elasticsearch-api-8.11.0
- old
+ new
@@ -26,23 +26,25 @@
#
# @option arguments [Boolean] :help Return help information
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
# @option arguments [Hash] :headers Custom HTTP headers
#
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat.html
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cat.html
#
def help(arguments = {})
+ request_opts = { endpoint: arguments[:endpoint] || "cat.help" }
+
arguments = arguments.clone
headers = arguments.delete(:headers) || {}
body = nil
method = Elasticsearch::API::HTTP_GET
path = "_cat"
params = Utils.process_params(arguments)
Elasticsearch::API::Response.new(
- perform_request(method, path, params, body, headers)
+ perform_request(method, path, params, body, headers, request_opts)
)
end
end
end
end