fastapi/docs/en/docs/reference/apirouter.md

524 B

APIRouter class

Here's the reference information for the APIRouter class, with all its parameters, attributes and methods.

You can import the APIRouter class directly from fastapi:

from fastapi import APIRouter

::: fastapi.APIRouter options: members: - websocket - include_router - get - put - post - delete - options - head - patch - trace - on_event