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():
    ...

with global descriptions added to the openapi specification,

from quart_schema import QuartSchema

QuartSchema(app, tags=[{"name": "v0", "description": "The first API version"}])

...