Swagger enable or dissable changes#62
Conversation
WalkthroughThe changes update configuration files to enable or allow dynamic control of Springdoc API documentation and Swagger UI features based on environment variables or explicit property settings. Additionally, the JWT validation filter is modified to bypass validation for requests targeting Swagger UI, API documentation, and token refresh endpoints, expanding the list of endpoints excluded from authentication checks. One configuration file receives a minor formatting update with an added blank line. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant JwtUserIdValidationFilter
participant Application
Client->>JwtUserIdValidationFilter: HTTP Request (any endpoint)
alt Excluded Path (login, logout, public, swagger, api-docs, refreshToken)
JwtUserIdValidationFilter->>Application: Pass request without JWT validation
else Other Paths
JwtUserIdValidationFilter->>JwtUserIdValidationFilter: Perform JWT validation
alt JWT valid
JwtUserIdValidationFilter->>Application: Pass request
else JWT invalid
JwtUserIdValidationFilter->>Client: Respond with error
end
end
Poem
Tip ⚡💬 Agentic Chat (Pro Plan, General Availability)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
🧰 Additional context used🧠 Learnings (1)src/main/environment/ecd_ci.properties (1)⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (4)
✨ 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:
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 (
|
|



📋 Description
JIRA ID: AMM-1186
Swagger enable changes
✅ Type of Change
ℹ️ Additional Information
Please describe how the changes were tested, and include any relevant screenshots, logs, or other information that provides additional context.
Summary by CodeRabbit
New Features
Bug Fixes
Chores