Documentation Tags

Specifying tags in the router object makes the documentation for granularly defined and easier to read.

router = APIRouter(
    prefix='/posts',
    tags='posts'
)

results in something like this:

FastAPI tags