def copy_routes(self, remapping=None):
        if not self.inherit_from:
            raise APIBlueprint.InheritanceError(
                'Blueprint not properly configured to inherit routes'
            )

        parent_blueprint = self.inherit_from
        for rule, view_info in parent_blueprint.routes_to_views_map.iteritems():
            view_func = view_info.get('view_func')
            options_dict = view_info.get('options')

            if remapping and rule in remapping:
                if remapping[rule]:
                    rule = remapping[rule]
                else:
                    continue

            self.add_url_rule(rule, view_func=view_func, **options_dict)
If a Blueprint inherits from another, we copy over all of the parent's
dataset/ETHPy150Open gwongz/flask-apiblueprint/flask_apiblueprint/apiblueprint.py/APIBlueprint.copy_routes