def METHOD_NAME(versions, link_name=None, description=None, **settings):
    """
    Add a view configuration decorator for API views.
    This is similar to Pyramid's `view_config` except that it uses
    `add_api_view` to register the view instead of `context.add_view`.
    """
    def callback(context, _name, view):
        add_api_view(
            context.config,
            view=view,
            versions=versions,
            link_name=link_name,
            description=description,
            **settings
        )
    def wrapper(wrapped):
        info = venusian.attach(wrapped, callback, category="pyramid")
        # Support use as a class method decorator.
        # Taken from Pyramid's `view_config` decorator implementation.
        if info.scope == "class":  # pylint: disable=no-member
            if settings.get("attr") is None:
                settings["attr"] = wrapped.__name__
        return wrapped
    return wrapper