Skip to content

Commit

Permalink
KL-155/chore: add swagger annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
idealflower-k committed Aug 22, 2024
1 parent 70c6ae6 commit c72375f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

import com.fasterxml.jackson.core.JsonProcessingException;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import taco.klkl.domain.oauth2.service.Oauth2KakaoService;
Expand All @@ -21,6 +23,7 @@
@RestController
@RequestMapping("/v1/oauth/kakao")
@RequiredArgsConstructor
@Tag(name = "9. 인증/인가", description = "인증/인가 API")
public class Oauth2KakaoController {

private final Oauth2KakaoService oauth2KakaoService;
Expand All @@ -42,6 +45,7 @@ public class Oauth2KakaoController {
* @return
*/
@GetMapping()
@Operation(summary = "kakao 간편로그인 요청", description = "카카오 oauth2를 사용하여 로그인 처리합니다.")
public ResponseEntity<Void> oauthKakao() {
String location = getKakaoOauthLocation();

Expand All @@ -56,6 +60,7 @@ public ResponseEntity<Void> oauthKakao() {
*/
// TODO: JWT적용시 토큰 관리 로직 추가
@GetMapping("/code")
@Operation(summary = "kakao 사용자 정보 가져오기", description = "카카오 API를 사용하여 사용자 정보를 가져옵니다.")
public UserDetailResponse processKakaoOauth2(@RequestParam("code") String code) throws
JsonProcessingException {

Expand Down

0 comments on commit c72375f

Please sign in to comment.