from fastapi import APIRouter router = APIRouter() @router.get("/lol") async def get_lol(count: int = 1): """Return lol in specified amount""" return { "message": "lol" * count, "method": "GET", "_verb": "get", "features": { "rate_limit": 100, "repeats": count } }