How dv0retsky/fastapi-tutorial works
This repository is a Russian-language FastAPI learning course, not a runnable application. Its main workflow is for a learner to follow lessons from API basics through authentication, persistence, testing, and deployment, then practice with control assignments. The README establishes the course contents and order; sampled code shows a role-based authorization example. Connections inside that example are limited to imports and calls visible in the excerpts.
Main entry points: README.md Course index · main.py RBAC API example · dependencies.py Current-user dependency · db.py User data lookup
Components 29
API basics
- FastAPI introduction
FAPI1_Introduction/FAPI1_Introduction.md - Endpoints and parameters
FAPI2_Endpoints and Parameters/FAPI2_Endpoints and Parameters.md
Request handling
- Request processing
FAPI3_Processing requests/FAPI3_Processing requests.md - Postman
FAPI4_Postman/FAPI4_Postman.md - Async and cookies
FAPI5_Async Types Cookies/FAPI5_Async Types Cookies.md
Security and data
- Authentication
FAPI6_Authentication/FAPI6_Authentication.md - Role-based access
FAPI7_Roles/FAPI7_Roles.md - Database CRUD
FAPI8_Database/FAPI8_Database.md - Database migrations
FAPI9_Migration/FAPI9_Migration.md - RBAC API example
FAPI7_Roles/project_example/main.py - JWT security
FAPI7_Roles/project_example/security.py - Current-user dependency
FAPI7_Roles/project_example/dependencies.py - User data lookup
FAPI7_Roles/project_example/db.py - User models
FAPI7_Roles/project_example/models.py - Role checker
FAPI7_Roles/project_example/rbac.py
Testing and deployment
- Validation errors
FAPI10_Errors/FAPI10_Errors.md - Application testing
FAPI11_Testing/FAPI11_Testing.md - Integration testing
FAPI12_Integration/FAPI12_Integration.md - Docker deployment
FAPI13_Deployment/FAPI13_Deployment.md
Advanced topics
- WebSocket support
FAPI14_WebSocket/FAPI14_WebSocket.md - Dependency injection
FAPI15_Implementation/FAPI15_Implementation.md - Course conclusion
FAPI16_Conclusion/FAPI16_Conclusion.md - Assignment 1
FAPI_KR1/FAPI_KR1.md - Assignment 2
FAPI_KR2/FAPI_KR2.md - Assignment 3
FAPI_KR3/FAPI_KR3.md - Assignment 4
FAPI_KR4/FAPI_KR4.md - Assignment 5
FAPI_KR5/FAPI_KR5.md
Other components
- Learner
- Course index
README.md
Connections 31
- Learner → Course index: opens
README.md - Course index → FastAPI introduction: links to
README.md - Course index → Endpoints and parameters: links to
README.md - Course index → Request processing: links to
README.md - Course index → Postman: links to
README.md - Course index → Async and cookies: links to
README.md - Course index → Authentication: links to
README.md - Course index → Role-based access: links to
README.md - Course index → Database CRUD: links to
README.md - Course index → Database migrations: links to
README.md - Course index → Validation errors: links to
README.md - Course index → Application testing: links to
README.md - Course index → Integration testing: links to
README.md - Course index → Docker deployment: links to
README.md - Course index → WebSocket support: links to
README.md - Course index → Dependency injection: links to
README.md - Course index → Course conclusion: links to
README.md - Course index → Assignment 1: links to
README.md - Course index → Assignment 2: links to
README.md - Course index → Assignment 3: links to
README.md - Course index → Assignment 4: links to
README.md - Course index → Assignment 5: links to
README.md - RBAC API example → JWT security: creates token
FAPI7_Roles/project_example/main.py - RBAC API example → Current-user dependency: depends on
FAPI7_Roles/project_example/main.py - RBAC API example → User data lookup: reads users
FAPI7_Roles/project_example/main.py - RBAC API example → User models: uses models
FAPI7_Roles/project_example/main.py - RBAC API example → Role checker: guards routes
FAPI7_Roles/project_example/main.py - Current-user dependency → JWT security: extracts identity
FAPI7_Roles/project_example/dependencies.py - Current-user dependency → User data lookup: looks up user
FAPI7_Roles/project_example/dependencies.py - Current-user dependency → User models: returns user
FAPI7_Roles/project_example/dependencies.py - User data lookup → User models: constructs
FAPI7_Roles/project_example/db.py