def RestMethod(url, http_methods):
  """Decorator to define a method's REST URL parameters."""

  def WrapFunction(fn):
    fn.is_rest_method = True
    fn.rest_url = url
    fn.rest_http_methods = http_methods
    return fn
  return WrapFunction