-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DEV-44] Lecture 테이블 pk 수정 반영 (#285)
* refactor: Lecture 엔티티 pk 수정 * test: Lecture 엔티티 pk 수정에 따른 테스트 수정 * chore: codeowners 추가 * refactor: 전공 실습 과목 조회 로직 추가
- Loading branch information
Showing
59 changed files
with
437 additions
and
463 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 21 additions & 7 deletions
28
src/main/java/com/plzgraduate/myongjigraduatebe/core/config/SwaggerConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,32 @@ | ||
package com.plzgraduate.myongjigraduatebe.core.config; | ||
|
||
import io.swagger.v3.oas.models.Components; | ||
import io.swagger.v3.oas.models.OpenAPI; | ||
import io.swagger.v3.oas.models.info.Info; | ||
import io.swagger.v3.oas.models.security.SecurityScheme; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
@Configuration | ||
public class SwaggerConfig { | ||
|
||
@Bean | ||
public OpenAPI springOpenApi() { | ||
return new OpenAPI().info(new Info() | ||
.title("Myongji-Graduate API Documentation") | ||
.description("졸업을 부탁해 서비스의 API 명세서입니다.") | ||
.version("v2.0.0")); | ||
} | ||
@Bean | ||
public OpenAPI springOpenApi() { | ||
return new OpenAPI().info(new Info() | ||
.title("Myongji-Graduate API Documentation") | ||
.description("졸업을 부탁해 서비스의 API 명세서입니다.") | ||
.version("v2.0.0")) | ||
.components(securityComponents()); | ||
} | ||
|
||
private Components securityComponents() { | ||
return new Components() | ||
.addSecuritySchemes( | ||
"AccessToken", | ||
new SecurityScheme() | ||
.type(SecurityScheme.Type.HTTP) | ||
.scheme("bearer") | ||
.bearerFormat("JWT") | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.