From dc29f830a63269134ae8ada359ae69eec3536e23 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 8 Aug 2023 09:09:19 +0200 Subject: [PATCH] vault backup: 2023-08-08 09:09:19 Affected files: Python FastAPI.md --- Python FastAPI.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Python FastAPI.md b/Python FastAPI.md index 1aff1be..1283a9e 100644 --- a/Python FastAPI.md +++ b/Python FastAPI.md @@ -24,4 +24,19 @@ To save the dependency list, you can run the pip freeze command and send the out Later on, when you deploy your application on a server, you will be able to run -`(.venv) pip install -r requirements.txt` \ No newline at end of file +`(.venv) pip install -r requirements.txt` + +## Hello world + +```python +from fastapi import FastAPI + +app = FastAPI() + +@app.get("/") +def read_root(): + return {"Hello": "World"} + +``` + +