ruby/lib/openapi_client/api/meal_planning_api.rb
def delete_from_shopping_list_with_http_info(username, id, hash, inline_object10, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: MealPlanningApi.delete_from_shopping_list ...'
      end
      # verify the required parameter 'username' is set
      if @api_client.config.client_side_validation && username.nil?
        fail ArgumentError, "Missing the required parameter 'username' when calling MealPlanningApi.delete_from_shopping_list"
      end
      # verify the required parameter 'id' is set
      if @api_client.config.client_side_validation && id.nil?
        fail ArgumentError, "Missing the required parameter 'id' when calling MealPlanningApi.delete_from_shopping_list"
      end
      # verify the required parameter 'hash' is set
      if @api_client.config.client_side_validation && hash.nil?
        fail ArgumentError, "Missing the required parameter 'hash' when calling MealPlanningApi.delete_from_shopping_list"
      end
      # verify the required parameter 'inline_object10' is set
      if @api_client.config.client_side_validation && inline_object10.nil?
        fail ArgumentError, "Missing the required parameter 'inline_object10' when calling MealPlanningApi.delete_from_shopping_list"
      end
      # resource path
      local_var_path = '/mealplanner/{username}/shopping-list/items/{id}'.sub('{' + 'username' + '}', username.to_s).sub('{' + 'id' + '}', id.to_s)

      # query parameters
      query_params = opts[:query_params] || {}
      query_params[:'hash'] = hash

      # header parameters
      header_params = opts[:header_params] || {}
      # HTTP header 'Accept' (if needed)
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      # HTTP header 'Content-Type'
      header_params['Content-Type'] = @api_client.select_header_content_type([''])

      # form parameters
      form_params = opts[:form_params] || {}

      # http body (model)
      post_body = opts[:body] || @api_client.object_to_http_body(inline_object10) 

      # return_type
      return_type = opts[:return_type] || 'Object' 

      # auth_names
      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(:DELETE, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: MealPlanningApi#delete_from_shopping_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
# Delete from Shopping List
# Delete an item from the current shopping list of the user.
# @param username [String] The username.
# @param id [Integer] The item&#39;s id.
# @param hash [String] The private hash for the username.
# @param inline_object10 [InlineObject10] 
# @param [Hash] opts the optional parameters
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
Delete from Shopping List
Delete an item from the current shopping list of the user.
Delete from Shopping List Delete an item from the current shopping list of the user .
def delete_from_shopping_list_with_http_info(username, id, hash, inline_object10, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: MealPlanningApi.delete_from_shopping_list ...'
      end
      if @api_client.config.client_side_validation && username.nil?
        fail ArgumentError, "Missing the required parameter 'username' when calling MealPlanningApi.delete_from_shopping_list"
      end
      if @api_client.config.client_side_validation && id.nil?
        fail ArgumentError, "Missing the required parameter 'id' when calling MealPlanningApi.delete_from_shopping_list"
      end
      if @api_client.config.client_side_validation && hash.nil?
        fail ArgumentError, "Missing the required parameter 'hash' when calling MealPlanningApi.delete_from_shopping_list"
      end
      if @api_client.config.client_side_validation && inline_object10.nil?
        fail ArgumentError, "Missing the required parameter 'inline_object10' when calling MealPlanningApi.delete_from_shopping_list"
      end
      local_var_path = '/mealplanner/{username}/shopping-list/items/{id}'.sub('{' + 'username' + '}', username.to_s).sub('{' + 'id' + '}', id.to_s)
      query_params = opts[:query_params] || {}
      query_params[:'hash'] = hash
      header_params = opts[:header_params] || {}
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      header_params['Content-Type'] = @api_client.select_header_content_type([''])
      form_params = opts[:form_params] || {}
      post_body = opts[:body] || @api_client.object_to_http_body(inline_object10) 
      return_type = opts[:return_type] || 'Object' 
      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(:DELETE, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: MealPlanningApi#delete_from_shopping_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def delete_from_shopping_list_with_http_info ( username , id , hash , inline_object10 , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: MealPlanningApi.delete_from_shopping_list ...' end if @api_client . config . client_side_validation && username . nil? fail ArgumentError , "Missing the required parameter 'username' when calling MealPlanningApi.delete_from_shopping_list" end if @api_client . config . client_side_validation && id . nil? fail ArgumentError , "Missing the required parameter 'id' when calling MealPlanningApi.delete_from_shopping_list" end if @api_client . config . client_side_validation && hash . nil? fail ArgumentError , "Missing the required parameter 'hash' when calling MealPlanningApi.delete_from_shopping_list" end if @api_client . config . client_side_validation && inline_object10 . nil? fail ArgumentError , "Missing the required parameter 'inline_object10' when calling MealPlanningApi.delete_from_shopping_list" end local_var_path = '/mealplanner/{username}/shopping-list/items/{id}' . sub ( '{' + 'username' + '}' , username . to_s ) . sub ( '{' + 'id' + '}' , id . to_s ) query_params = opts [ :query_params ] || { } query_params [ :' hash ' ] = hash header_params = opts [ :header_params ] || { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] ) header_params [ 'Content-Type' ] = @api_client . select_header_content_type ( [ '' ] ) form_params = opts [ :form_params ] || { } post_body = opts [ :body ] || @api_client . object_to_http_body ( inline_object10 ) return_type = opts [ :return_type ] || 'Object' 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 ( :DELETE , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: MealPlanningApi#delete_from_shopping_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Delete from Shopping List
Delete an item from the current shopping list of the user.
Delete from Shopping List Delete an item from the current shopping list of the user .
# verify the required parameter 'username' is set # verify the required parameter 'id' is set # verify the required parameter 'hash' is set # verify the required parameter 'inline_object10' is set # resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # HTTP header 'Content-Type' # form parameters # http body (model) # return_type # auth_names
Object data, response status code and response headers
Object data response status code and response headers
Array<(Object, Integer, Hash)>
username
None
id
The item's id.
The item ' s id .
hash
The private hash for the username.
The private hash for the username .
inline_object10
opts
None
opts the optional parameters
opts the optional parameters