How resquezz/community-forum-api works
This is an ASP.NET Core community-forum API with JWT login and role-based authorization, backed by EF Core/SQL Server and documented SignalR support. A user sends API requests to resource controllers, which delegate to application services; user registration/login yields account data or a token, while forum operations manage topics, posts, comments, votes, categories, and tags. The graph preserves these domain branches, authorization, persistence, and realtime events. Most service implementations were not sampled, so their connections are shown only where the index or excerpts support them; other links are omitted.
Main entry points: Services Forum services · CategoryService.cs Category service · UserService.cs User service · AppDbContext.cs EF data context
Components 15
API access
- Resource controllers
CommunityForum.API/Controllers - User endpoints
CommunityForum.API/Controllers/UsersController.cs - Topic endpoints
CommunityForum.API/Controllers/TopicsController.cs - Post endpoints
CommunityForum.API/Controllers/PostsController.cs - Comment endpoints
CommunityForum.API/Controllers/CommentsController.cs
Application logic
- Forum services
CommunityForum.Application/Services - User service
CommunityForum.Application/Services/UserService.cs - Category service
CommunityForum.Application/Services/CategoryService.cs - Authorization
CommunityForum.Application/Authorization/ForumAuthorizationService.cs
Forum domain
- Forum entities
CommunityForum.Domain/Entities
Persistence and realtime
- Repository implementations
CommunityForum.Infrastructure/Repositories - EF data context
CommunityForum.Infrastructure/Data/AppDbContext.cs - SQL Server
- SignalR hub
CommunityForum.Infrastructure/SignalR/ForumHub.cs
Other components
- Forum user
Connections 15
- Forum user → Resource controllers: sends requests
- Resource controllers → User endpoints: routes users
- User endpoints → User service: delegates to
CommunityForum.API/Controllers/UsersController.cs - Topic endpoints → Forum services: delegates to
CommunityForum.API/Controllers/TopicsController.cs - Post endpoints → Forum services: delegates to
CommunityForum.API/Controllers/PostsController.cs - Comment endpoints → Forum services: delegates to
CommunityForum.API/Controllers/CommentsController.cs - Forum services → Forum entities: manages
CommunityForum.Application/Services/CategoryService.cs - User service → Authorization: checks permissions
CommunityForum.Application/Services/UserService.cs - User service → Repository implementations: uses user repository
CommunityForum.Application/Services/UserService.cs - Category service → Authorization: checks taxonomy access
CommunityForum.Application/Services/CategoryService.cs - Category service → Repository implementations: uses category repository
CommunityForum.Application/Services/CategoryService.cs - Category service → SignalR hub: broadcasts events
CommunityForum.Application/Services/CategoryService.cs - Repository implementations → EF data context: reads and writes
CommunityForum.Infrastructure/Repositories/UserRepository.cs - EF data context → Forum entities: maps entities
CommunityForum.Infrastructure/Data/AppDbContext.cs - EF data context → SQL Server: persists data