mirror of
https://github.com/fastapi/fastapi.git
synced 2026-01-18 11:01:35 -05:00
* ⬆️ Upgrade Pydantic and others (isort), update docs after changes by isort * 🎨 Format with newest isort, update type hints in jsonable_encoder * 🔧 Update test script, to avoid Pydantic type errors * ⬆️ Update pyproject.toml with latest Pydantic
9 lines
161 B
Python
9 lines
161 B
Python
from fastapi import FastAPI
|
|
|
|
app = FastAPI(docs_url="/documentation", redoc_url=None)
|
|
|
|
|
|
@app.get("/items/")
|
|
async def read_items():
|
|
return [{"name": "Foo"}]
|