Build fast, modern APIs with FastAPI.
A complete Campaign Management API with:
- ✅ Create campaigns
- ✅ List all campaigns
- ✅ Get campaign by ID
- ✅ Update campaigns
- ✅ Delete campaigns
uvicorn main:app --reload- API: http://127.0.0.1:8000
- Interactive Docs: http://127.0.0.1:8000/docs
- Alternative Docs: http://127.0.0.1:8000/redoc
curl http://127.0.0.1:8000/campaignscurl -X POST http://127.0.0.1:8000/campaigns \
-H "Content-Type: application/json" \
-d '{"name": "New Campaign", "due_date": "2026-12-31T00:00:00"}'- Pydantic Models - Automatic validation
- Type Hints - Better editor support
- Auto Docs - Interactive API documentation
- Fast - High performance (as fast as NodeJS and Go)
→ Explore rest_api/ for Flask + SQLAlchemy!