def setup(spec):
    spec.register_path_helper(schema_path_helper)
    global rules
    rules = {
        rule.rule: rule for rule in current_app.url_map.iter_rules()
    }
Setup for the marshmallow plugin.
dataset/ETHPy150Open 4Catalyzer/flask-resty/flask_resty/spec/plugin.py/setup