From efd7dfb820462a48934ee92c50c4d5f674efda28 Mon Sep 17 00:00:00 2001 From: YeongWoooo Date: Sun, 10 Dec 2023 04:20:28 +0900 Subject: [PATCH] [#104] v1.0.0 --- main/build.gradle | 2 +- .../main/common/config/SwaggerConfig.java | 46 +++++++++---------- server/package-lock.json | 2 +- server/package.json | 2 +- server/src/common/utils/swagger.ts | 2 +- 5 files changed, 27 insertions(+), 27 deletions(-) diff --git a/main/build.gradle b/main/build.gradle index d4b31465..d0c0a5b9 100644 --- a/main/build.gradle +++ b/main/build.gradle @@ -5,7 +5,7 @@ plugins { } group = 'org.sopt.makers.crew' -version = '0.0.1-SNAPSHOT' +version = '1.0.0' java { sourceCompatibility = '17' diff --git a/main/src/main/java/org/sopt/makers/crew/main/common/config/SwaggerConfig.java b/main/src/main/java/org/sopt/makers/crew/main/common/config/SwaggerConfig.java index b30b0d86..ac3e984e 100644 --- a/main/src/main/java/org/sopt/makers/crew/main/common/config/SwaggerConfig.java +++ b/main/src/main/java/org/sopt/makers/crew/main/common/config/SwaggerConfig.java @@ -16,27 +16,27 @@ @OpenAPIDefinition(servers = { @Server(url = "/", description = "Generated Server URL") }) public class SwaggerConfig { - @Bean - public OpenAPI openAPI() { - - Info info = new Info() - .title("Crew API 문서") - .version("0.5.3") - .description("Crew API 문서"); - - String jwtSchemeName = "JWT Authorization"; - SecurityRequirement securityRequirement = new SecurityRequirement().addList(jwtSchemeName); - - Components components = new Components() - .addSecuritySchemes(jwtSchemeName, new SecurityScheme() - .name(jwtSchemeName) - .type(HTTP) // HTTP 방식 - .scheme("bearer") - .bearerFormat("JWT")); - - return new OpenAPI() - .info(info) - .addSecurityItem(securityRequirement) - .components(components); - } + @Bean + public OpenAPI openAPI() { + + Info info = new Info() + .title("Crew API 문서") + .version("1.0.0") + .description("Crew API 문서"); + + String jwtSchemeName = "JWT Authorization"; + SecurityRequirement securityRequirement = new SecurityRequirement().addList(jwtSchemeName); + + Components components = new Components() + .addSecuritySchemes(jwtSchemeName, new SecurityScheme() + .name(jwtSchemeName) + .type(HTTP) // HTTP 방식 + .scheme("bearer") + .bearerFormat("JWT")); + + return new OpenAPI() + .info(info) + .addSecurityItem(securityRequirement) + .components(components); + } } diff --git a/server/package-lock.json b/server/package-lock.json index 7340217d..9e283a85 100644 --- a/server/package-lock.json +++ b/server/package-lock.json @@ -1,6 +1,6 @@ { "name": "sopt_web_product_server", - "version": "0.5.3", + "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/server/package.json b/server/package.json index 3a8ff4a3..5da04bb0 100644 --- a/server/package.json +++ b/server/package.json @@ -1,6 +1,6 @@ { "name": "sopt_web_product_server", - "version": "0.5.3", + "version": "1.0.0", "description": "", "author": "", "private": true, diff --git a/server/src/common/utils/swagger.ts b/server/src/common/utils/swagger.ts index 6d0e48a5..cbfd091f 100644 --- a/server/src/common/utils/swagger.ts +++ b/server/src/common/utils/swagger.ts @@ -12,7 +12,7 @@ export function setupSwagger(app: INestApplication): void { const options = new DocumentBuilder() .setTitle('Crew API 문서') .setDescription('Crew API 문서') - .setVersion('0.5.3') + .setVersion('1.0.0') .addBearerAuth() .build();