Alexander Malev
Alexander Malev
pamqp.encode.DEPRECATED_RABBITMQ_SUPPORT = True
1. Don't use path param and read [examples/foreign](examples/foreign) 2. If you load the specification without binding handlers use router.include("spec.json", name='myspec') And browse /apidoc/?spec=myspec 3. Example: load spec with mocked handler...
Automatically bind the handler through the operationId of the library knows how, you just need to define the mapping in which handlers can be found. See https://github.com/aamalev/aiohttp_apiset/issues/2
I did not know about the "operationId", and it is an interesting idea. Must think how to organize operations subsystem.
Resolved ``` from aiohttp_apiset.swagger.operations import OperationIdMapping router = SwaggerRouter(default_validate=True) router.add_search_dir('...') opmap = OperationIdMapping() opmap.add_operations( 'mymodule', module.module, getPets='module.handler') router.include('...yaml', basePath='/my/override/path', operationId_mapping=opmap) ```
add_operations renamed to add
Need to document this functionality
Try 0.6.2 version of aiohttp_apiset. This version uses absolute url instead of relative
dvhb_hybrid.exceptions is DEPRECATED, use aiohttp.web_exceptions instead of it
The generalized solution in #18