Tagging#
Tagging allows routes to be grouped, based on a name (tag). Routes can
be tagged using the tag() decorator,
from quart_schema import tag
@app.route("/v0/resource/")
@tag(["v0"])
async def get_resource():
...
blueprints can be tagged using
tag_blueprint() (applies to all routes
in the blueprint),
from quart_schema import tag_blueprint
tag_blueprint(blueprint)
with global descriptions added to the openapi specification,
from quart_schema import QuartSchema
QuartSchema(app, tags=[{"name": "v0", "description": "The first API version"}])
...