Skip to content

Commit ed3e6d5

Browse files
committed
chore: AuthController Swagger 명세 추가 (#7)
1 parent c731a0c commit ed3e6d5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/main/java/com/project/mapdagu/domain/auth/controller/AuthController.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,32 @@
22

33
import com.project.mapdagu.common.dto.ResponseDto;
44
import com.project.mapdagu.domain.auth.service.AuthService;
5-
import com.project.mapdagu.domain.member.dto.request.SignUpRequestDto;
6-
import com.project.mapdagu.domain.member.dto.response.SignUpResponseDto;
5+
import com.project.mapdagu.domain.auth.dto.request.SignUpRequestDto;
6+
import com.project.mapdagu.domain.auth.dto.response.SignUpResponseDto;
7+
import io.swagger.v3.oas.annotations.Operation;
8+
import io.swagger.v3.oas.annotations.tags.Tag;
79
import lombok.RequiredArgsConstructor;
810
import org.springframework.http.ResponseEntity;
911
import org.springframework.web.bind.annotation.GetMapping;
1012
import org.springframework.web.bind.annotation.PostMapping;
1113
import org.springframework.web.bind.annotation.RequestBody;
1214
import org.springframework.web.bind.annotation.RestController;
1315

16+
@Tag(name = "Auth", description = "Auth API")
1417
@RestController
1518
@RequiredArgsConstructor
1619
public class AuthController {
1720

1821
private final AuthService authService;
1922

23+
@Operation(summary = "자체 회원가입", description = "이메일을 사용해 회원가입 합니다.")
2024
@PostMapping("/sign-up")
2125
public ResponseEntity<SignUpResponseDto> signUp(@RequestBody SignUpRequestDto signUpRequestDto) {
2226
SignUpResponseDto signUpResponseDto = authService.signUp(signUpRequestDto);
2327
return ResponseDto.created(signUpResponseDto);
2428
}
2529

30+
@Operation(summary = "JWT 테스트", description = "Token으로 JWT 테스트를 합니다.")
2631
@GetMapping("/jwt-test")
2732
public String jwtTest() {
2833
return "jwtTest 요청 성공";

0 commit comments

Comments
 (0)