Skip to content

Commit

Permalink
[INFRA] prod v1.1.2 배포
Browse files Browse the repository at this point in the history
  • Loading branch information
rdd9223 committed Mar 31, 2024
1 parent 5b5bd20 commit 101b794
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 64 deletions.
2 changes: 1 addition & 1 deletion main/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = 'org.sopt.makers.crew'
version = '1.1.1'
version = '1.1.2'

java {
sourceCompatibility = '17'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,24 @@
import org.springframework.context.annotation.Configuration;

@Configuration
@OpenAPIDefinition(servers = { @Server(url = "/", description = "Generated Server URL") })
@OpenAPIDefinition(servers = {@Server(url = "/", description = "Generated Server URL")})
public class SwaggerConfig {

@Bean
public OpenAPI openAPI() {

Info info = new Info()
.title("Crew API 문서")
.version("1.1.1")
Info info = new Info().title("Crew API 문서").version("1.1.2")
.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)
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);
}
}
}
64 changes: 20 additions & 44 deletions server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sopt_web_product_server",
"version": "1.1.1",
"version": "1.1.2",
"description": "",
"author": "",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion server/src/common/utils/swagger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function setupSwagger(app: INestApplication): void {
const options = new DocumentBuilder()
.setTitle('Crew API 문서')
.setDescription('Crew API 문서')
.setVersion('1.1.1')
.setVersion('1.1.2')
.addBearerAuth()
.build();

Expand Down

0 comments on commit 101b794

Please sign in to comment.