lib/elastic/workplace-search/api/content_source.rb in elastic-enterprise-search-7.17.1 vs lib/elastic/workplace-search/api/content_source.rb in elastic-enterprise-search-8.0.0.pre

- old
+ new

@@ -22,25 +22,24 @@ module WorkplaceSearch module Actions # ContentSources - Retrieves a content source by ID # Retrieves a content source by ID # - # @param content_source_id [String] Unique ID for a Custom API source, provided upon creation of a Custom API Source (*Required*) - # @param arguments [Hash] endpoint arguments + # @param [String] content_source_id Unique ID for a Custom API source, provided upon creation of a Custom API Source (*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/workplace-search/current/workplace-search-content-sources-api.html#get-content-source-api # def content_source(content_source_id, arguments = {}) raise ArgumentError, "Required parameter 'content_source_id' missing" unless content_source_id headers = arguments.delete(:headers) || {} - request( :get, "api/ws/v1/sources/#{content_source_id}/", arguments, - {}, + nil, headers ) end end end