flask-restful-swagger icon indicating copy to clipboard operation
flask-restful-swagger copied to clipboard

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

Open ustcliao opened this issue 8 years ago • 1 comments

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

ustcliao avatar Oct 17 '17 03:10 ustcliao

@ustcliao are you able to resolve this ?

muhammadarslan99 avatar Feb 09 '18 09:02 muhammadarslan99