How asmaaelsayed55/vioguard.api_graduation.project_ works
VioGuard is a backend moderation API for text and video, with user accounts, upload history, and aggregate reporting. The principal workflow accepts content through API endpoints, classifies or analyzes it, records content and history, and exposes results to users. The sampled code shows URL scraping, content persistence, user services, and history queries; README capabilities and indexed-but-unsampled modules preserve detection and reporting branches. Detection-model internals and some runtime wiring were not sampled, so those links are marked unverified or omitted.
Main entry points: ContentService.cs Content processing · UserService.cs User service · AuthController.cs Authentication API · ContentController.cs Content API
Components 24
API endpoints
- Authentication API
Infrastructure/Presentation/Controllers/AuthController.cs - Content API
Infrastructure/Presentation/Controllers/ContentController.cs - Detection API
Infrastructure/Presentation/Controllers/DetectionController.cs - User API
Infrastructure/Presentation/Controllers/UserController.cs - History API
Infrastructure/Presentation/Controllers/HistoryController.cs - Report API
Infrastructure/Presentation/Controllers/ReportController.cs
Content moderation
- URL scraping
Core/Services/Implementations/ContentScrapingService.cs - Content processing
Core/Services/Implementations/ContentService.cs - Text/video detection
Infrastructure/Presentation/Controllers/DetectionController.cs - Content records
Core/Domain/Entities/ContentsMudule/Content.cs - Text content
Core/Domain/Entities/ContentsMudule/TextContent.cs - Video content
Core/Domain/Entities/ContentsMudule/VideoContent.cs
User management
- User service
Core/Services/Implementations/UserService.cs - User account
Core/Domain/Entities/UserModule/User.cs - JWT tokens
Core/Services/Implementations/JwtTokenService.cs
Persistence and audit
- History records
Core/Domain/Entities/SystemModule/HistoryRecord.cs - Unit of work
Infrastructure/Presistence/Repositories/UnitOfWork.cs - Generic repository
Infrastructure/Presistence/Repositories/GenericRepository.cs - Database context
Infrastructure/Presistence/Data/VioGuardDbContext.cs - Application database
History and reporting
- History service
Core/Services/Implementations/HistoryService.cs - Report service
Core/Services/Implementations/ReportService.cs
Other components
- API client
- Remote content hosts
Connections 27
- API client → Authentication API: authenticates
Infrastructure/Presentation/Controllers/AuthController.cs - API client → Content API: submits URLs
Infrastructure/Presentation/Controllers/ContentController.cs - API client → Detection API: requests analysis
Infrastructure/Presentation/Controllers/DetectionController.cs - API client → User API: manages profile
Infrastructure/Presentation/Controllers/UserController.cs - API client → History API: requests history
Infrastructure/Presentation/Controllers/HistoryController.cs - API client → Report API: requests reports
Infrastructure/Presentation/Controllers/ReportController.cs - Authentication API → User service: authenticates users
Infrastructure/Presentation/Controllers/AuthController.cs - Authentication API → JWT tokens: creates tokens
Infrastructure/Presentation/Controllers/AuthController.cs - User API → User service: updates users
Infrastructure/Presentation/Controllers/UserController.cs - Content API → URL scraping: scrapes URLs
Infrastructure/Presentation/Controllers/ContentController.cs - URL scraping → Remote content hosts: fetches media
Core/Services/Implementations/ContentScrapingService.cs - Detection API → Text/video detection: analyzes media
Infrastructure/Presentation/Controllers/DetectionController.cs - Text/video detection → Content processing: persists results
- Content API → Content processing: processes content
- Content processing → Content records: creates records
Core/Services/Implementations/ContentService.cs - Content processing → History records: logs uploads
Core/Services/Implementations/ContentService.cs - Content records → Text content: specializes as
Core/Domain/Entities/ContentsMudule/TextContent.cs - Content records → Video content: specializes as
Core/Domain/Entities/ContentsMudule/VideoContent.cs - History API → History service: queries history
Infrastructure/Presentation/Controllers/HistoryController.cs - Report API → Report service: requests metrics
Infrastructure/Presentation/Controllers/ReportController.cs - History service → History records: reads records
Core/Services/Implementations/HistoryService.cs - History service → Database context: queries database
Core/Services/Implementations/HistoryService.cs - User service → User account: manages accounts
Core/Services/Implementations/UserService.cs - User service → Unit of work: uses repositories
Core/Services/Implementations/UserService.cs - Unit of work → Generic repository: provides repositories
VioGuard.API/Program.cs - Generic repository → Database context: accesses sets
Infrastructure/Presistence/Repositories/GenericRepository.cs - Database context → Application database: reads and writes
Infrastructure/Presistence/Data/VioGuardDbContext.cs