-
Notifications
You must be signed in to change notification settings - Fork 6
chore: update readme file #56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
… all related namespaces
…ding unique id in the filename
…ve generated token to redis
|
Caution Review failedFailed to post review comments. WalkthroughThis update migrates the project from "DocumentService" to "OsmoDoc," introducing a new modular structure with distinct namespaces for API, PDF, Word, and services. It adds Redis-backed JWT token management, enhances PDF and Word document generation with asynchronous and configurable resource cleanup, and provides comprehensive documentation and usage guides. Docker and environment configuration are modernized, and the codebase is refactored to align with the new architecture. Changes
Sequence Diagram(s)Login and JWT Token ManagementsequenceDiagram
participant Client
participant LoginController
participant RedisTokenStoreService
participant JWT_Helper
Client->>LoginController: POST /api/login (with email)
LoginController->>JWT_Helper: Generate JWT token
JWT_Helper-->>LoginController: JWT token
LoginController->>RedisTokenStoreService: StoreTokenAsync(token, email)
RedisTokenStoreService-->>LoginController: (completed)
LoginController-->>Client: BaseResponse (token, success)
Client->>LoginController: POST /api/revoke (with token)
LoginController->>RedisTokenStoreService: RevokeTokenAsync(token)
RedisTokenStoreService-->>LoginController: (completed)
LoginController-->>Client: BaseResponse (success)
PDF Generation FlowsequenceDiagram
participant Client
participant PdfController
participant PdfDocumentGenerator
participant FileSystem
Client->>PdfController: POST /api/pdf/GeneratePdfUsingHtml (with request)
PdfController->>PdfDocumentGenerator: GeneratePdf(templatePath, metaData, outputPath, ...)
PdfDocumentGenerator->>FileSystem: Read template, write temp files
PdfDocumentGenerator-->>PdfController: PDF generated at outputPath
PdfController->>FileSystem: (optional) Delete temp files
PdfController-->>Client: BaseResponse (PDF as base64 or path)
Word Document Generation FlowsequenceDiagram
participant Client
participant WordController
participant WordDocumentGenerator
participant FileSystem
Client->>WordController: POST /api/word/GenerateWordDocument (with request)
WordController->>WordDocumentGenerator: GenerateDocumentByTemplate(templatePath, documentData, outputPath)
WordDocumentGenerator->>FileSystem: Read template, process images, tables, placeholders
WordDocumentGenerator-->>WordController: Word document generated
WordController->>FileSystem: (optional) Delete temp files
WordController-->>Client: BaseResponse (Word doc as base64 or path)
Poem
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Task Link
REST-1582
Description
Summary by CodeRabbit
New Features
Improvements
Bug Fixes
Documentation
Chores