lib/elastic/app-search/api/schema.rb in elastic-enterprise-search-7.17.1 vs lib/elastic/app-search/api/schema.rb in elastic-enterprise-search-8.0.0.pre
- old
+ new
@@ -22,27 +22,24 @@
module AppSearch
module Actions
# Schema - Retrieve engine schema
# Retrieve current schema for the engine
#
- # @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/schema.html#schema-read
#
def schema(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/v1/engines/#{engine_name}/schema/",
arguments,
- body,
+ nil,
headers
)
end
end
end