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

v1.1.2 #151

Merged
merged 2 commits into from
Mar 31, 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: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,4 +231,4 @@ $ sudo docker image prune

## 컀밋 μ»¨λ²€μ…˜

TBU
TBD
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
Loading