Python for the Web: Building a Backend
For students who've finished Python II: Deeper Into the Language and Databases & SQL Fundamentals — build a real web API with FastAPI: routes, path and query parameters, validated request bodies, real HTTP status codes, and a genuine SQLite-backed database connection, one small concept at a time.
Included with a subscription14 modules
Course content
- 1. Glossary
- 2. What Happens on the Server Side of a Request
- 3. Your First FastAPI Route
- 4. Path Parameters
- 5. Query Parameters
- 6. Request Bodies with Pydantic
- 7. HTTP Methods and Status Codes
- 8. Handling Errors: HTTPException
- 9. Shaping Responses with response_model
- 10. Calling SQL from Python: the sqlite3 Module
- 11. The Threading Gotcha: Wiring a Database into FastAPI
- 12. CRUD Endpoints Backed by a Real Table
- 13. Automatic API Docs (/docs)
- 14. Capstone: A Small Book-Catalog JSON API