From d2637ac3bc6623e1ae3cffb1dc9301b0e38b092c Mon Sep 17 00:00:00 2001 From: Hyomin Koo Date: Sun, 29 Sep 2024 02:03:07 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20`/login`=20=EC=97=94=EB=93=9C=ED=8F=AC?= =?UTF-8?q?=EC=9D=B8=ED=8A=B8=20Swagger=20=EC=84=A4=EB=AA=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/security/controller/AuthenticationController.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/dev/gooiman/server/security/controller/AuthenticationController.java b/src/main/java/dev/gooiman/server/security/controller/AuthenticationController.java index bbbcc79..168d081 100644 --- a/src/main/java/dev/gooiman/server/security/controller/AuthenticationController.java +++ b/src/main/java/dev/gooiman/server/security/controller/AuthenticationController.java @@ -4,6 +4,8 @@ import dev.gooiman.server.security.application.CustomAuthenticationService; import dev.gooiman.server.security.application.dto.JwtResponseDto; import dev.gooiman.server.security.application.dto.LoginRequestDto; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; import java.util.UUID; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.PathVariable; @@ -15,11 +17,13 @@ @RestController @RequiredArgsConstructor @RequestMapping("/api/auth") +@Tag(name = "Authentication", description = "인증 처리 API") public class AuthenticationController { private final CustomAuthenticationService authenticationService; @PostMapping("/login/{page_id}") + @Operation(summary = "로그인", description = "로그인을 수행합니다. 만약 한번도 로그인 한 적 없는 name으로 로그인을 시도할 경우 회원가입을 수행합니다.") public ResponseDto signIn(@PathVariable("page_id") UUID pageId, @RequestBody LoginRequestDto dto) { return ResponseDto.ok(authenticationService.login(pageId, dto));