rantav / flask-restful-swagger

A Swagger spec extractor for flask-restful
MIT License
665 stars 217 forks source link

AssertionError: View function mapping is overwriting an existing endpoint function: users./v1/users/help #114

Open ustcliao opened 6 years ago

ustcliao commented 6 years ago

I have a url that is "/v1/users" When I use flask-restful-swagger, i got following error:

File "/Library/Python/2.7/site-packages/flask/app.py", line 64, in wrapper_func return f(self, *args, kwargs) File "/Library/Python/2.7/site-packages/flask/app.py", line 951, in register_blueprint blueprint.register(self, options, first_registration) File "/Library/Python/2.7/site-packages/flask/blueprints.py", line 154, in register deferred(state) File "/Library/Python/2.7/site-packages/flask/blueprints.py", line 173, in s.add_url_rule(rule, endpoint, view_func, options)) File "/Library/Python/2.7/site-packages/flask_restful/init.py", line 165, in _blueprint_setup_add_url_rule_patch view_func, defaults=defaults, *options) File "/Library/Python/2.7/site-packages/flask/app.py", line 64, in wrapper_func return f(self, args, **kwargs) File "/Library/Python/2.7/site-packages/flask/app.py", line 1051, in add_url_rule 'existing endpoint function: %s' % endpoint) AssertionError: View function mapping is overwriting an existing endpoint function: users./v1/users/help

muhammadarslan99 commented 6 years ago

@ustcliao are you able to resolve this ?