def parse_ranged_param(ranged_param, allowed_params)
      return {} unless ranged_param.present?

      fields = {}

      # Extract the fields for each type from the fields parameters
      if ranged_param.is_a?(Hash)
        ranged_param.each do |field, value|
          resource_fields = value.split(',') unless value.nil? || value.empty?
          raise InvalidRangeException, "Invalid range format for #{ranged_param}. Too many arguments for filter (#{resource_fields})." if resource_fields.length > 2
          raise InvalidRangeException, "Invalid range format for #{ranged_param}. Begin and end must be separated by a comma (,)." if resource_fields.length < 2
          fields[field.to_sym] = resource_fields
        end
      else
        raise InvalidRangeException, "Invalid range format for #{ranged_param}"
      end
      check_ranged_param(fields, allowed_params)
      fields
    end
def parse_ranged_param(ranged_param, allowed_params)
      return {} unless ranged_param.present?

      fields = {}

      # Extract the fields for each type from the fields parameters
      if ranged_param.is_a?(Hash)
        ranged_param.each do |field, value|
          resource_fields = value.split(',') unless value.nil? || value.empty?
          raise InvalidRangeException, "Invalid range format for #{ranged_param}. Too many arguments for filter (#{resource_fields})." if resource_fields.length > 2
          raise InvalidRangeException, "Invalid range format for #{ranged_param}. Begin and end must be separated by a comma (,)." if resource_fields.length < 2
          fields[field.to_sym] = resource_fields
        end
      else
        raise InvalidRangeException, "Invalid range format for #{ranged_param}"
      end
      check_ranged_param(fields, allowed_params)
      fields
    end
------------------------ Range helpers --------------------
 Va transformer le param url en hash exploitable