aiohttp-swagger
aiohttp-swagger copied to clipboard
Swagger API Documentation builder for aiohttp server
In Swagger 3 we can add common **Schemas** in section `#/components/schemas/`. Also we can can add common examples in section `#/components/examples/`. **aiohttp-swagger** can add multiple schemas in `#/components/schemas/` through `definitions`...
If the `swagger_info` attribute contains a datetime object in an example definition, the default JSON serializer will fail for datetime types. ex) ``` TypeError: datetime.datetime(2021, 11, 14, 1, 34, 26,...
Hi! It is planned to support a new version? Now, with app: ``` from aiohttp import web from aiohttp_swagger import * async def ping(request): return web.Response(text="pong") app = web.Application() app.router.add_route('GET',...
I'm trying to use inheritance in my class based view: ```python from aiohttp import web from aiohttp_swagger3 import SwaggerDocs, SwaggerUiSettings class BaseApi(web.View): async def get(self): return web.json_response(data={'called_method': 'GET'}) async def...
my Authorization header is no longer passed with the request in this mode
It would be useful to redefine or update global swagger schema by endpoint swagger definition. Also it is possible to validate swagger schema. Also dropped 3.4 support.
setup_swagger now accepts "definitions" kwarg containing definitions as YAML formatted-string By doing this you may want to generate marshmallow models using swagger-marshmallow-codegen, or simply mutualise objects definitions among multiple routes