@staticmethod<EOL><INDENT>def _blueprint_setup_add_url_rule_patch(blueprint_setup, rule, endpoint=None, view_func=None, **options):<DEDENT>
if callable(rule):<EOL><INDENT>rule = rule(blueprint_setup.url_prefix)<EOL><DEDENT>elif blueprint_setup.url_prefix:<EOL><INDENT>rule = blueprint_setup.url_prefix + rule<EOL><DEDENT>options.setdefault('<STR_LIT>', blueprint_setup.subdomain)<EOL>if endpoint is None:<EOL><INDENT>endpoint = _endpoint_from_view_func(view_func)<EOL><DEDENT>defaults = blueprint_setup.url_defaults<EOL>if '<STR_LIT>' in options:<EOL><INDENT>defaults = dict(defaults, **options.pop('<STR_LIT>'))<EOL><DEDENT>blueprint_setup.app.add_url_rule(rule, '<STR_LIT>' % (blueprint_setup.blueprint.name, endpoint),<EOL>view_func, defaults=defaults, **options)<EOL>
Method used to patch BlueprintSetupState.add_url_rule for setup
        state instance corresponding to this Api instance.  Exists primarily
        to enable _complete_url's function.

        :param blueprint_setup: The BlueprintSetupState instance (self)
        :param rule: A string or callable that takes a string and returns a
            string(_complete_url) that is the url rule for the endpoint
            being registered
        :param endpoint: See BlueprintSetupState.add_url_rule
        :param view_func: See BlueprintSetupState.add_url_rule
        :param **options: See BlueprintSetupState.add_url_rule