def parse_searching_param(searching_param, allowed_params)
      return {} unless searching_param.present?

      fields = {}

      # Extract the fields for each type from the fields parameters
      if searching_param.is_a?(Hash)
        searching_param.each do |field, value|
          resource_fields = value.split(',') unless value.nil? || value.empty?
          fields[field.to_sym] = resource_fields
        end
      else
        raise InvalidSearchException, "Invalid search format for #{searching_param}"
      end
      check_searching_param(fields, allowed_params)
      fields
    end
def parse_searching_param(searching_param, allowed_params)
      return {} unless searching_param.present?

      fields = {}

      # Extract the fields for each type from the fields parameters
      if searching_param.is_a?(Hash)
        searching_param.each do |field, value|
          resource_fields = value.split(',') unless value.nil? || value.empty?
          fields[field.to_sym] = resource_fields
        end
      else
        raise InvalidSearchException, "Invalid search format for #{searching_param}"
      end
      check_searching_param(fields, allowed_params)
      fields
    end
------------------------ Search helpers --------------------
 Va transformer le param url en hash exploitable