mirror of
https://github.com/fastapi/fastapi.git
synced 2026-01-19 19:41:13 -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
154 B
Python
9 lines
154 B
Python
from fastapi import FastAPI
|
|
|
|
app = FastAPI(openapi_url="/api/v1/openapi.json")
|
|
|
|
|
|
@app.get("/items/")
|
|
async def read_items():
|
|
return [{"name": "Foo"}]
|