- Create a FastAPI application
- Understand API Endpoints
- Create Path Parameters
- Create Query Parameters
- Handle HTTP Exceptions
- Use Pydantic Models
- Perform CRUD Operations
fastapi-workshop/
│
├── README.md
├── pyproject.toml
├── uv.lock
├── .gitignore
├── main.py
└── patients.json
- Python 3.10 or later
- uv
- VS Code
- Git
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"curl -LsSf https://astral.sh/uv/install.sh | shVerify the installation:
uv --versiongit clone https://github.com/<your-username>/fastapi-workshop.git
cd fastapi-workshopuv venv
.venv\Scripts\activateuv venv
source .venv/bin/activateuv syncThis installs all the required packages listed in the project.
uv run fastapi dev main.pyOnce the server starts, you should see something similar to:
Uvicorn running on http://127.0.0.1:8000
http://127.0.0.1:8000/
http://127.0.0.1:8000/docs
http://127.0.0.1:8000/redoc
- Hello World Endpoint
- About API Endpoints
- Reading JSON Data
- Path Parameters
- HTTP Exceptions
- Query Parameters
- Pydantic Models
- CRUD Operations
- Python
- FastAPI
- Pydantic
- uv
Happy Coding! 🚀