How abdul-rahman24/hire-platform-idp works
The Test Configuration Service is a FastAPI backend for creating, organizing, and delivering test configurations. Clients enter through the API routes; test and section services apply lifecycle rules, persist metadata, and connect sections to live Question Bank data, while full-test retrieval assembles ordered sections and questions. The graph includes the documented test, section, health, and question-set capabilities. Some implementation paths, especially test-service internals and full-test assembly, were not excerpted; those links are included only where the README documents them.
Main entry points: section_service.py Section lifecycle · providers.py Dependency providers · router.py API router · test_service.py Test lifecycle
Components 20
HTTP API
- FastAPI application
app/main.py - API router
app/api/router.py - Health endpoint
app/api/routes/health.py - Test endpoints
app/api/routes/tests.py - Section endpoints
app/api/routes/sections.py - Question-set endpoints
app/api/routes/question_bank.py
Test Domain
- Dependency providers
app/dependencies/providers.py - Test lifecycle
app/services/test_service.py - Section lifecycle
app/services/section_service.py - Section entity
app/models/section.py - Section API schema
app/schemas/section.py
Persistence
- Test repository
app/repositories/test_repository.py - Section repository
app/repositories/section_repository.py - DynamoDB operations
app/repositories/dynamodb_base.py - DynamoDB
Question Bank Integration
- Question Bank service
app/services/question_bank_service.py - Question Bank client
app/utils/question_bank_client.py
Other components
- API client
- API Gateway
- Question Bank API
Connections 26
- API client → API Gateway: sends HTTPS
README.md - API Gateway → FastAPI application: invokes Lambda
README.md - FastAPI application → API router: mounts routes
app/main.py - API router → Health endpoint: routes requests
app/api/router.py - API router → Test endpoints: routes requests
app/api/router.py - API router → Section endpoints: routes requests
app/api/router.py - API router → Question-set endpoints: routes requests
app/api/router.py - Test endpoints → Dependency providers: resolves service
app/api/routes/tests.py - Section endpoints → Dependency providers: resolves service
app/api/routes/sections.py - Question-set endpoints → Dependency providers: resolves service
app/api/routes/question_bank.py - Dependency providers → Test lifecycle: constructs
app/dependencies/providers.py - Dependency providers → Section lifecycle: constructs
app/dependencies/providers.py - Dependency providers → Question Bank service: constructs
app/dependencies/providers.py - Section lifecycle → Test repository: verifies test
app/services/section_service.py - Section lifecycle → Section repository: persists sections
app/services/section_service.py - Section lifecycle → Question Bank client: validates question set
app/services/section_service.py - Section lifecycle → Section entity: creates entity
app/services/section_service.py - Section lifecycle → Section API schema: maps response
app/services/section_service.py - Section repository → DynamoDB operations: delegates storage
app/repositories/section_repository.py - Test repository → DynamoDB operations: delegates storage
app/repositories/dynamodb_base.py - DynamoDB operations → DynamoDB: reads and writes
app/repositories/dynamodb_base.py - Test lifecycle → Test repository: stores test data
README.md - Test lifecycle → Section repository: loads sections
README.md - Test lifecycle → Question Bank client: fetches questions
README.md - Question Bank service → Question Bank client: uses client
app/services/question_bank_service.py - Question Bank client → Question Bank API: requests question data
app/utils/question_bank_client.py