ruby/lib/openapi_client/api/misc_api.rb
# Search Site Content
# Search spoonacular&#39;s site content. You&#39;ll be able to find everything that you could also find using the search suggestions on spoonacular.com. This is a suggest API so you can send partial strings as queries.
# @param query [String] The query to search for. You can also use partial queries such as \&quot;spagh\&quot; to already find spaghetti recipes, articles, grocery products, and other content.
# @param [Hash] opts the optional parameters
# @return [Array<(InlineResponse20052, Integer, Hash)>] InlineResponse20052 data, response status code and response headers
Search Site Content
Search spoonacular's site content. You'll be able to find everything that you could also find using the search suggestions on spoonacular.com. This is a suggest API so you can send partial strings as queries.
Search Site Content Search spoonacular ' s site content . You ' ll be able to find everything that you could also find using the search suggestions on spoonacular . com . This is a suggest API so you can send partial strings as queries .
def search_site_content_with_http_info(query, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: MiscApi.search_site_content ...'
      end
      if @api_client.config.client_side_validation && query.nil?
        fail ArgumentError, "Missing the required parameter 'query' when calling MiscApi.search_site_content"
      end
      local_var_path = '/food/site/search'
      query_params = opts[:query_params] || {}
      query_params[:'query'] = query
      header_params = opts[:header_params] || {}
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      form_params = opts[:form_params] || {}
      post_body = opts[:body] 
      return_type = opts[:return_type] || 'InlineResponse20052' 
      auth_names = opts[:auth_names] || ['apiKeyScheme']
      new_options = opts.merge(
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => return_type
      )
      data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: MiscApi#search_site_content\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def search_site_content_with_http_info ( query , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: MiscApi.search_site_content ...' end if @api_client . config . client_side_validation && query . nil? fail ArgumentError , "Missing the required parameter 'query' when calling MiscApi.search_site_content" end local_var_path = '/food/site/search' query_params = opts [ :query_params ] || { } query_params [ :' query ' ] = query header_params = opts [ :header_params ] || { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] ) form_params = opts [ :form_params ] || { } post_body = opts [ :body ] return_type = opts [ :return_type ] || 'InlineResponse20052' auth_names = opts [ :auth_names ] || [ 'apiKeyScheme' ] new_options = opts . merge ( :header_params => header_params , :query_params => query_params , :form_params => form_params , :body => post_body , :auth_names => auth_names , :return_type => return_type ) data , status_code , headers = @api_client . call_api ( :GET , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: MiscApi#search_site_content\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Search Site Content
Search spoonacular&#39;s site content.
Search Site Content Search spoonacular&#39 ; s site content .
# verify the required parameter 'query' is set # resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # form parameters # http body (model) # return_type # auth_names
InlineResponse20052 data, response status code and response headers
InlineResponse20052 data response status code and response headers
Array<(InlineResponse20052, Integer, Hash)>
query
The query to search for. You can also use partial queries such as \"spagh\" to already find spaghetti recipes, articles, grocery products, and other content.
The query to search for . You can also use partial queries such as \ " spagh \ " to already find spaghetti recipes articles grocery products and other content .
opts
opts the optional parameters
opts the optional parameters