|
2 | 2 |
|
3 | 3 | import com.project.mapdagu.common.dto.ResponseDto;
|
4 | 4 | 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; |
7 | 9 | import lombok.RequiredArgsConstructor;
|
8 | 10 | import org.springframework.http.ResponseEntity;
|
9 | 11 | import org.springframework.web.bind.annotation.GetMapping;
|
10 | 12 | import org.springframework.web.bind.annotation.PostMapping;
|
11 | 13 | import org.springframework.web.bind.annotation.RequestBody;
|
12 | 14 | import org.springframework.web.bind.annotation.RestController;
|
13 | 15 |
|
| 16 | +@Tag(name = "Auth", description = "Auth API") |
14 | 17 | @RestController
|
15 | 18 | @RequiredArgsConstructor
|
16 | 19 | public class AuthController {
|
17 | 20 |
|
18 | 21 | private final AuthService authService;
|
19 | 22 |
|
| 23 | + @Operation(summary = "자체 회원가입", description = "이메일을 사용해 회원가입 합니다.") |
20 | 24 | @PostMapping("/sign-up")
|
21 | 25 | public ResponseEntity<SignUpResponseDto> signUp(@RequestBody SignUpRequestDto signUpRequestDto) {
|
22 | 26 | SignUpResponseDto signUpResponseDto = authService.signUp(signUpRequestDto);
|
23 | 27 | return ResponseDto.created(signUpResponseDto);
|
24 | 28 | }
|
25 | 29 |
|
| 30 | + @Operation(summary = "JWT 테스트", description = "Token으로 JWT 테스트를 합니다.") |
26 | 31 | @GetMapping("/jwt-test")
|
27 | 32 | public String jwtTest() {
|
28 | 33 | return "jwtTest 요청 성공";
|
|
0 commit comments