Adding example files

This commit is contained in:
Pascal Scheiben
2025-09-18 08:39:47 +02:00
parent 04054f181e
commit bcc2bc9678
6 changed files with 24 additions and 1 deletions

9
src/example/router.py Normal file
View File

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