How sergeb250/blogplatform-iv works
This is a Spring MVC blogging REST API. Its main workflow is request authentication/authorization, controller dispatch, service-level domain operations, and JPA persistence before a standardized JSON response. The README also documents OAuth login, content moderation, comments, reviews, tags, statistics, audit/security reporting, caching, and administrative session controls. Controller excerpts and the source index establish some links; other documented branches are retained with explicitly unverified dashed links where implementation wiring was not sampled.
Main entry points: AuthService.java Authentication · UserService.java User Accounts · controller Domain Endpoints · PostService.java Post Management
Components 30
REST API
- Auth Endpoints
src/main/java/com/blogPlatform/III/blog/controller/AuthController.java - Post Endpoints
src/main/java/com/blogPlatform/III/blog/controller/PostController.java - Domain Endpoints
src/main/java/com/blogPlatform/III/blog/controller - API Responses
src/main/java/com/blogPlatform/III/blog/dto/response/ApiResponse.java
Blog Content
- Post Management
src/main/java/com/blogPlatform/III/blog/service/PostService.java - Comments
src/main/java/com/blogPlatform/III/blog/service/CommentService.java - Reviews
src/main/java/com/blogPlatform/III/blog/service/ReviewService.java - Tag Management
src/main/java/com/blogPlatform/III/blog/service/TagService.java - Content Moderation
src/main/java/com/blogPlatform/III/blog/service/ContentModerator.java - Post Queries
src/main/java/com/blogPlatform/III/blog/repository/PostRepository.java - Review Queries
src/main/java/com/blogPlatform/III/blog/repository/ReviewRepository.java
Identity Security
- Authentication
src/main/java/com/blogPlatform/III/blog/service/AuthService.java - User Accounts
src/main/java/com/blogPlatform/III/blog/service/UserService.java - JWT Service
src/main/java/com/blogPlatform/III/blog/security/jwt/JwtService.java - Security Principal
src/main/java/com/blogPlatform/III/blog/security/AuthUser.java - User Details
src/main/java/com/blogPlatform/III/blog/security/AppUserDetailsService.java - Session Registry
src/main/java/com/blogPlatform/III/blog/security/token/ActiveSessionRegistry.java - Login Protection
src/main/java/com/blogPlatform/III/blog/security/monitor/LoginAttemptService.java - Security Pipeline
src/main/java/com/blogPlatform/III/blog/security/SecurityConfig.java - Google Login
src/main/java/com/blogPlatform/III/blog/security/oauth2/GoogleLoginHandler.java - User Queries
src/main/java/com/blogPlatform/III/blog/repository/UserRepository.java
Operations
- Security Monitor
src/main/java/com/blogPlatform/III/blog/security/monitor/SecurityMonitor.java - Platform Statistics
src/main/java/com/blogPlatform/III/blog/service/StatsService.java - Audit Logging
src/main/java/com/blogPlatform/III/blog/service/AuditService.java - Admin Reports
src/main/java/com/blogPlatform/III/blog/controller/AdminSecurityController.java - Monitoring Endpoints
src/main/java/com/blogPlatform/III/blog/controller/StatsController.java - Caffeine Cache
src/main/java/com/blogPlatform/III/blog/config/CacheConfig.java
Other components
- API Client
- MySQL Data
- Google OAuth
Connections 44
- API Client → Auth Endpoints: calls
README.md - API Client → Post Endpoints: calls
src/main/java/com/blogPlatform/III/blog/controller/PostController.java - API Client → Domain Endpoints: calls
- Auth Endpoints → Authentication: delegates to
- Post Endpoints → Post Management: delegates to
src/main/java/com/blogPlatform/III/blog/controller/PostController.java - Post Endpoints → API Responses: returns
src/main/java/com/blogPlatform/III/blog/controller/PostController.java - Auth Endpoints → API Responses: returns
- Domain Endpoints → Comments: delegates to
src/main/java/com/blogPlatform/III/blog/controller/CommentController.java - Domain Endpoints → Reviews: delegates to
src/main/java/com/blogPlatform/III/blog/controller/ReviewController.java - Domain Endpoints → Tag Management: delegates to
src/main/java/com/blogPlatform/III/blog/controller/TagController.java - Domain Endpoints → User Accounts: delegates to
src/main/java/com/blogPlatform/III/blog/controller/UserController.java - Authentication → JWT Service: issues token
src/main/java/com/blogPlatform/III/blog/service/AuthService.java - Authentication → Login Protection: checks attempts
src/main/java/com/blogPlatform/III/blog/service/AuthService.java - Authentication → Session Registry: registers session
src/main/java/com/blogPlatform/III/blog/service/AuthService.java - Authentication → Security Monitor: records events
src/main/java/com/blogPlatform/III/blog/service/AuthService.java - Authentication → Security Principal: uses principal
src/main/java/com/blogPlatform/III/blog/service/AuthService.java - User Accounts → User Queries: reads and writes
src/main/java/com/blogPlatform/III/blog/service/UserService.java - User Accounts → Session Registry: revokes tokens
src/main/java/com/blogPlatform/III/blog/service/UserService.java - User Accounts → Security Monitor: records revocation
src/main/java/com/blogPlatform/III/blog/service/UserService.java - User Accounts → Security Principal: creates principal
src/main/java/com/blogPlatform/III/blog/service/UserService.java - User Details → User Queries: loads account
src/main/java/com/blogPlatform/III/blog/security/AppUserDetailsService.java - User Details → Security Principal: builds principal
src/main/java/com/blogPlatform/III/blog/security/AppUserDetailsService.java - Security Pipeline → JWT Service: configures filter
- Security Pipeline → Google Login: enables login
- Google OAuth → Google Login: authenticates
README.md - Google Login → User Accounts: finds or creates
src/main/java/com/blogPlatform/III/blog/service/UserService.java - Google Login → Authentication: issues JWT
README.md - Post Management → Post Queries: queries posts
src/main/java/com/blogPlatform/III/blog/service/PostService.java - Post Management → Content Moderation: checks content
src/main/java/com/blogPlatform/III/blog/service/PostService.java - Post Management → Tag Management: uses tags
src/main/java/com/blogPlatform/III/blog/service/PostService.java - Post Management → Audit Logging: records changes
src/main/java/com/blogPlatform/III/blog/service/PostService.java - Post Queries → MySQL Data: queries
README.md - User Queries → MySQL Data: queries
README.md - Review Queries → MySQL Data: queries
README.md - Reviews → Review Queries: reads and writes
src/main/java/com/blogPlatform/III/blog/service/ReviewService.java - Reviews → Post Queries: checks post
src/main/java/com/blogPlatform/III/blog/service/ReviewService.java - Reviews → User Queries: checks user
src/main/java/com/blogPlatform/III/blog/service/ReviewService.java - Reviews → Caffeine Cache: evicts rankings
src/main/java/com/blogPlatform/III/blog/service/ReviewService.java - Comments → MySQL Data: persists comments
README.md - Tag Management → MySQL Data: persists tags
README.md - Platform Statistics → Post Queries: aggregates content
- Audit Logging → MySQL Data: stores audit
README.md - Admin Reports → Security Monitor: reports events
README.md - Monitoring Endpoints → Platform Statistics: requests metrics