-
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.
- Loading branch information
Showing
55 changed files
with
438 additions
and
23 deletions.
There are no files selected for viewing
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
22 changes: 22 additions & 0 deletions
22
...a/com/plzgraduate/myongjigraduatebe/auth/adaptor/in/web/signin/SignInApiPresentation.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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.plzgraduate.myongjigraduatebe.auth.adaptor.in.web.signin; | ||
|
||
import javax.validation.Valid; | ||
|
||
import org.springframework.web.bind.annotation.RequestBody; | ||
|
||
import com.plzgraduate.myongjigraduatebe.auth.application.port.in.TokenResponse; | ||
import com.plzgraduate.myongjigraduatebe.core.meta.LoginUser; | ||
|
||
import io.swagger.v3.oas.annotations.Hidden; | ||
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
|
||
@Tag(name = "SignIn", description = "로그인 API") | ||
public interface SignInApiPresentation { | ||
|
||
@Operation(summary = "로그인") | ||
TokenResponse signIn(@Valid @RequestBody SignInRequest signInRequest); | ||
|
||
@Hidden | ||
String check(@LoginUser Long userId); | ||
} |
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
15 changes: 15 additions & 0 deletions
15
...ava/com/plzgraduate/myongjigraduatebe/auth/adaptor/in/web/token/TokenApiPresentation.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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.plzgraduate.myongjigraduatebe.auth.adaptor.in.web.token; | ||
|
||
import javax.validation.Valid; | ||
|
||
import org.springframework.web.bind.annotation.RequestBody; | ||
|
||
import com.plzgraduate.myongjigraduatebe.auth.application.port.in.AccessTokenResponse; | ||
|
||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
|
||
@Tag(name = "Token", description = "토큰 발급 API") | ||
public interface TokenApiPresentation { | ||
|
||
AccessTokenResponse newToken(@Valid @RequestBody TokenRequest tokenRequest); | ||
} |
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
3 changes: 3 additions & 0 deletions
3
.../java/com/plzgraduate/myongjigraduatebe/auth/application/port/in/AccessTokenResponse.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
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
19 changes: 19 additions & 0 deletions
19
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.plzgraduate.myongjigraduatebe.core.config; | ||
|
||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
import io.swagger.v3.oas.models.OpenAPI; | ||
import io.swagger.v3.oas.models.info.Info; | ||
|
||
@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")); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...duate/myongjigraduatebe/graduation/adpater/in/web/CalculateGraduationApiPresentation.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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.plzgraduate.myongjigraduatebe.graduation.adpater.in.web; | ||
|
||
import com.plzgraduate.myongjigraduatebe.core.meta.LoginUser; | ||
import com.plzgraduate.myongjigraduatebe.graduation.application.port.in.response.GraduationResponse; | ||
|
||
import io.swagger.v3.oas.annotations.Parameter; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
|
||
@Tag(name = "CalculateGraduation", description = "유저의 졸업 결과를 계산하는 API") | ||
public interface CalculateGraduationApiPresentation { | ||
|
||
@Parameter(name = "userId", description = "로그인한 유저의 PK값") | ||
GraduationResponse calculate(@LoginUser Long userId); | ||
} |
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
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
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
19 changes: 19 additions & 0 deletions
19
...om/plzgraduate/myongjigraduatebe/lecture/adapter/in/web/SearchLectureApiPresentation.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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.plzgraduate.myongjigraduatebe.lecture.adapter.in.web; | ||
|
||
import javax.validation.constraints.Size; | ||
|
||
import org.springframework.web.bind.annotation.RequestParam; | ||
|
||
import com.plzgraduate.myongjigraduatebe.lecture.application.port.in.search.SearchLectureResponse; | ||
|
||
import io.swagger.v3.oas.annotations.Parameter; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
|
||
@Tag(name = "SearchLecture", description = "type과 keyword를 통해 과목정보를 검색하는 API") | ||
public interface SearchLectureApiPresentation { | ||
|
||
SearchLectureResponse searchLecture( | ||
@Parameter(name = "type", description = "과목명 또는 과목코드") @RequestParam(defaultValue = "name") String type, | ||
@Parameter(name = "keyword", description = "검색어 2자리 이상") @RequestParam @Size(min = 2, message = "검색어를 2자리 이상 입력해주세요.") String keyword | ||
); | ||
} |
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.