Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces the integration of Swagger UI into the project. The key changes include the addition of new files for Swagger UI setup, configuration, and resources, as well as modifications to the project configuration files to include Swagger UI as a module.
Swagger UI Integration:
.idea/gradle.xml
: Added theswagger-ui
directory to the project structure.swagger-ui/build.gradle.kts
: Configured the build script for theswagger-ui
module, including dependencies and test setup.swagger-ui/src/main/kotlin/swagger/ui/SwaggerUI.kt
: Implemented the main logic for serving Swagger UI resources and handling HTTP requests.swagger-ui/src/main/kotlin/swagger/ui/SwaggerUIConfig.kt
: Added configuration classes for setting up the Swagger UI endpoint.Swagger UI Resources:
swagger-ui/src/main/resources/ui/index.html
: Added the HTML template for the Swagger UI interface.swagger-ui/src/main/resources/ui/index.css
: Added the CSS styles for the Swagger UI interface.swagger-ui/src/main/resources/ui/oauth2-redirect.html
: Added the OAuth2 redirect page for Swagger UI authentication.swagger-ui/src/main/resources/ui/swagger-initializer.js
: Added the JavaScript initializer for configuring Swagger UI on page load.This pull request introduces the integration of OpenAPI and Swagger UI into the project. The changes include adding dependencies, configuring OpenAPI endpoints, and updating the sample application to serve OpenAPI documentation and Swagger UI.
OpenAPI and Swagger Integration:
.idea/gradle.xml
,gradle/libs.versions.toml
). [1] [2] [3]openapi
module with necessary dependencies and build configurations (openapi/build.gradle.kts
).openapi/src/main/kotlin/kotlet/openapi/OpenAPI.kt
,openapi/src/main/kotlin/kotlet/openapi/OpenAPIConfig.kt
,openapi/src/main/kotlin/kotlet/openapi/OpenAPIModel.kt
,openapi/src/main/kotlin/kotlet/openapi/OpenAPIModelBuilder.kt
,openapi/src/main/kotlin/kotlet/openapi/OpenAPIOperation.kt
). [1] [2] [3] [4] [5]Sample Application Updates:
sample/build.gradle.kts
).sample/src/main/kotlin/Main.kt
). [1] [2] [3]