def validate_params!(api:, params:)
      rest_api = get(api)
      return params if rest_api.nil?

      params.keys.each do |key|
        unless rest_api.valid_param?(key) || valid_common_param?(key)
          raise ::Elastomer::Client::IllegalArgument, "'#{key}' is not a valid parameter for the '#{api}' API"
        end
      end
      params
    end
def validate_params!(api:, params:)
      rest_api = get(api)
      return params if rest_api.nil?

      params.keys.each do |key|
        unless rest_api.valid_param?(key) || valid_common_param?(key)
          raise ::Elastomer::Client::IllegalArgument, "'#{key}' is not a valid parameter for the '#{api}' API"
        end
      end
      params
    end
Given an API descriptor name and a set of request parameters, ensure that
 all the request parameters are valid for the API endpoint. If an invalid
 parameter is found then an IllegalArgument exception is raised.

 api  - the api descriptor name as a String
 from - the Hash containing the request params

 Returns the params unmodified
 Raises an IllegalArgument exception if an invalid parameter is found.