@classmethod
def instantiate_and_register_to_app(cls, flask_app):
    """Build the API object and register to the passed in flask_app.

        This is a simplistic loader that makes assumptions about how the
        blueprint is loaded. Anything beyond defaults should be done
        explicitly via normal instantiation where more values may be passed
        via :meth:`__init__`.

        :returns: :class:`keystone.server.flask.common.APIBase`
        """
    inst = cls()
    flask_app.register_blueprint(inst.blueprint)
    return inst
