How naresh733081/workspace-service works
This appears to be a Spring-based workspace backend, with authentication and note management as the clearest user-facing capabilities in the source tree. The tree also indicates admin endpoints, JWT and refresh-token support, request protections, and user/note persistence. No README or source excerpts were provided, so the graph identifies these components but does not assert call flows or storage relationships that cannot be verified.
Components 22
API endpoints
- Authentication API
src/main/java/com/example/workspace/auth/AuthController.java - Admin API
src/main/java/com/example/workspace/admin/AdminController.java - Note API
src/main/java/com/example/workspace/note/NoteController.java
Identity and security
- JWT filter
src/main/java/com/example/workspace/security/JwtAuthenticationFilter.java - JWT service
src/main/java/com/example/workspace/security/JwtService.java - Security configuration
src/main/java/com/example/workspace/security/SecurityConfig.java - Rate limiting
src/main/java/com/example/workspace/security/RateLimitFilter.java - Request size limit
src/main/java/com/example/workspace/security/RequestSizeLimitFilter.java - CORS configuration
src/main/java/com/example/workspace/security/CorsConfig.java - Access denied handler
src/main/java/com/example/workspace/security/RestAccessDeniedHandler.java - Authentication entry point
src/main/java/com/example/workspace/security/RestAuthenticationEntryPoint.java
Workspace data
- User model
src/main/java/com/example/workspace/user/User.java - User repository
src/main/java/com/example/workspace/user/UserRepository.java - User details service
src/main/java/com/example/workspace/user/UserDetailsServiceImpl.java - Refresh token
src/main/java/com/example/workspace/auth/RefreshToken.java - Refresh token repository
src/main/java/com/example/workspace/auth/RefreshTokenRepository.java - Token cleanup job
src/main/java/com/example/workspace/auth/RefreshTokenCleanupJob.java - Note model
src/main/java/com/example/workspace/note/Note.java - Note repository
src/main/java/com/example/workspace/note/NoteRepository.java
API errors
- Exception handler
src/main/java/com/example/workspace/exception/GlobalExceptionHandler.java - API error format
src/main/java/com/example/workspace/exception/ApiError.java
Other components
- API client