Skip to content
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

🔀 :: (PICK-18) swaager setting #21

Merged
merged 3 commits into from
Jan 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ dependencies {
implementation(Dependencies.MYSQL_CONNECTOR)

implementation(Dependencies.OPEN_FEIGN)

implementation(Dependencies.SWAGGER)
}

tasks.withType<KotlinCompile> {
Expand Down
5 changes: 2 additions & 3 deletions buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ object Dependencies {
// Cloud Config
const val CLOUD_CONFIG = "org.springframework.cloud:spring-cloud-config-client"

//redis
const val REDIS = "org.springframework.boot:spring-boot-starter-data-redis: ${DependencyVersions.REDIS_VERSION}"

// cloud
const val SPRING_CLOUD = "org.springframework.cloud:spring-cloud-dependencies:${DependencyVersions.SPRING_CLOUD_VERSION}"

const val SWAGGER = "org.springdoc:springdoc-openapi-ui:${DependencyVersions.SWAGGER_VERSION}"
}
1 change: 1 addition & 0 deletions buildSrc/src/main/kotlin/DependencyVersions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ object DependencyVersions {
const val OPEN_FEIGN_VERSION = "3.1.4"
const val JSON_VERSION = "20200518"
const val JWT_VERSION = "0.9.1"
const val SWAGGER_VERSION = "1.6.11"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package dsm.pick2024.global.config.swagger

import io.swagger.v3.oas.models.OpenAPI
import io.swagger.v3.oas.models.info.Info
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration

@Configuration
class SwaggerConfig {
@Bean
fun openAPI(): OpenAPI {
return OpenAPI()
.info(
Info().title("PICK 2024")
.description("PICK 2024")
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package dsm.pick2024.global.security.jwt.exception
import dsm.pick2024.global.error.exception.ErrorCode
import dsm.pick2024.global.error.exception.PickException


object ExpiredTokenException : PickException(
ErrorCode.EXPIRED_TOKEN
)
Loading