Skip to content

Commit

Permalink
[#104] v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rdd9223 committed Dec 9, 2023
1 parent 95fc039 commit dcd478f
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 27 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 = '0.0.1-SNAPSHOT'
version = '1.0.0'

java {
sourceCompatibility = '17'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
2 changes: 1 addition & 1 deletion 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": "0.5.3",
"version": "1.0.0",
"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('0.5.3')
.setVersion('1.0.0')
.addBearerAuth()
.build();

Expand Down

0 comments on commit dcd478f

Please sign in to comment.