lib/elastic/app-search/api/crawler_overview.rb in elastic-enterprise-search-7.17.1 vs lib/elastic/app-search/api/crawler_overview.rb in elastic-enterprise-search-8.0.0.pre
- old
+ new
@@ -22,27 +22,24 @@
module AppSearch
module Actions
# Crawler - Retrieve crawler configuration overview
# Retrieves crawler configuration overview of a given engine, including configured domains
#
- # @param engine_name [String] Name of the engine (*Required*)
- # @param arguments [Hash] endpoint arguments
- # @option arguments [Hash] :body The request body
+ # @param [String] engine_name Name of the engine (*Required*)
+ # @param [Hash] arguments endpoint arguments
# @option arguments [Hash] :headers optional HTTP headers to send with the request
#
# @see https://www.elastic.co/guide/en/app-search/current/web-crawler-api-reference.html#web-crawler-apis-get-crawler
#
def crawler_overview(engine_name, arguments = {})
raise ArgumentError, "Required parameter 'engine_name' missing" unless engine_name
- body = arguments.delete(:body) || {}
headers = arguments.delete(:headers) || {}
-
request(
:get,
- "api/as/v0/engines/#{engine_name}/crawler/",
+ "api/as/v1/engines/#{engine_name}/crawler/",
arguments,
- body,
+ nil,
headers
)
end
end
end