cr0hn / aiohttp-swagger

Swagger API Documentation builder for aiohttp server
http://aiohttp-swagger.readthedocs.io/en/latest/
Other
187 stars 80 forks source link

Fix class-based view #75

Closed Ekkertan closed 4 years ago

Ekkertan commented 5 years ago

When I add a class-based view to application route, I should to use a router.add_route method only and cat't use a router.add_post, router.add_get etc. This is besause of statement in builders._build_doc_from_func_doc contains a route.method == METH_ANY

codecov-io commented 5 years ago

Codecov Report

Merging #75 into master will increase coverage by 0.09%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #75      +/-   ##
=========================================
+ Coverage    88.7%   88.8%   +0.09%     
=========================================
  Files           4       4              
  Lines         124     125       +1     
=========================================
+ Hits          110     111       +1     
  Misses         14      14
Impacted Files Coverage Δ
aiohttp_swagger/helpers/builders.py 83.54% <100%> (+0.21%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 298d513...dd7d388. Read the comment docs.