lib/elasticsearch/api/actions/synonyms/get_synonyms_sets.rb in elasticsearch-api-8.10.0 vs lib/elasticsearch/api/actions/synonyms/get_synonyms_sets.rb in elasticsearch-api-8.11.0

- old
+ new

@@ -30,23 +30,25 @@ # # @option arguments [Integer] :from Starting offset # @option arguments [Integer] :size specifies a max number of results to get # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/list-synonyms-sets.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/list-synonyms-sets.html # def get_synonyms_sets(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || "synonyms.get_synonyms_sets" } + arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil method = Elasticsearch::API::HTTP_GET path = "_synonyms" 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