mirror of
https://github.com/fastapi/fastapi.git
synced 2025-12-25 23:29:34 -05:00
* 📝 Start How To docs section, move Peewee, remove Peewee from dependencies * 🚚 Move em files to new locations * 🚚 Move and re-structure advanced docs, move relevant to How To * 🔧 Update MkDocs config, new files in How To * 📝 Move docs for Conditional OpenAPI for Japanese to How To * 📝 Move example source files for Extending OpenAPI into each of the new sections * ✅ Update tests with new locations for source files * 🔥 Remove init from Peewee examples
9 lines
216 B
Python
9 lines
216 B
Python
from fastapi import FastAPI
|
|
|
|
app = FastAPI(swagger_ui_parameters={"syntaxHighlight.theme": "obsidian"})
|
|
|
|
|
|
@app.get("/users/{username}")
|
|
async def read_user(username: str):
|
|
return {"message": f"Hello {username}"}
|