Skip to content

Swagger support#41

Merged
alxmra merged 2 commits intomainfrom
dev
Dec 19, 2025
Merged

Swagger support#41
alxmra merged 2 commits intomainfrom
dev

Conversation

@Alexandre-A
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings December 19, 2025 00:02
@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds Swagger/OpenAPI documentation support to the OLSHEETS application by introducing the springdoc-openapi-starter-webmvc-ui dependency. This will enable interactive API documentation through Swagger UI, making it easier for developers to explore and test the API endpoints.

  • Added springdoc-openapi-starter-webmvc-ui version 2.3.0 as a dependency

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pom.xml
Comment on lines +46 to +51
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>2.3.0</version>
</dependency>

Copy link

Copilot AI Dec 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The springdoc-openapi-starter-webmvc-ui dependency is being added without any accompanying configuration or security updates. While the dependency itself is correct, this PR should include updates to SecurityConfig.java to permit access to Swagger UI endpoints (such as /v3/api-docs/, /swagger-ui/, and /swagger-ui.html), and potentially add configuration in application.properties for customizing the OpenAPI documentation. Without these changes, the Swagger UI will not be accessible to users due to the existing JWT authentication requirements.

Suggested change
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>2.3.0</version>
</dependency>

Copilot uses AI. Check for mistakes.
Comment thread pom.xml
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>2.3.0</version>
Copy link

Copilot AI Dec 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version number is hardcoded for the springdoc-openapi-starter-webmvc-ui dependency. Consider defining it as a property in the properties section (e.g., springdoc.version) for consistency with other dependency versions in the project. This makes it easier to manage and update the version across the project, similar to how jacoco.version is defined.

Copilot uses AI. Check for mistakes.
@alxmra alxmra merged commit 5eda629 into main Dec 19, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants