def register_method(name):
    """Decorator for registering methods that provide BGPS public API.
    """
    def decorator(func):
        setattr(func, '__api_method_name__', name)
        return func

    return decorator