Files
generic_api_endpoint/src/example/router.py
2025-09-18 10:39:36 +02:00

11 lines
290 B
Python

# contains the router for the aggregate endpoint
from fastapi import APIRouter
from .schema import ExampleSchema
router = APIRouter(tags=["aggregate"])
@router.get("/example")
async def example_endpoint() -> ExampleSchema:
return ExampleSchema(example_field="foo", another_field=42)