getsling / flask-swagger

A swagger 2.0 spec extractor for flask
MIT License
457 stars 91 forks source link

Handling multiple views for same route #4

Closed abhaga closed 9 years ago

abhaga commented 9 years ago

If you have two separate view functions handling different http verbs, currently only one of them appears in the swagger output since the latter one overwrites the earlier. This is a fix for that.

atlithorn commented 9 years ago

That's a good catch! Thanks. I might change this to a defaultdict later but this is fine for now.