-
In aiohttp-swagger (another library, not aiohttps-swagger3) we can use decorator to decorate route function with @swagger('./swagger/v1/account/create_accounts.yaml')
async def create_accounts(request):
"""Awesome function which linked to /api/v1/account method which create account
"""
engine = request.app['db']
# code ...
Because aiohttps-swagger not maintained at now, i can't talk with any maintainers and can't ask anybody to improve that mechanism. In my world it must work such that:
Is will be okay to create pull request to that project, aiohttp-swagger3, with functional such i wrote before? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Why don't you use spec file? see example https://github.com/hh-h/aiohttp-swagger3/tree/master/examples/file_spec |
Beta Was this translation helpful? Give feedback.
Why don't you use spec file? see example https://github.com/hh-h/aiohttp-swagger3/tree/master/examples/file_spec