Skip to content

Commit

Permalink
Chore : Swagger 헤더 정보 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
MinsFuture committed Jun 12, 2024
1 parent 7dce582 commit ca63c1b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
import com.gdsc.petwalk.auth.itself.dto.response.TokenResponseDto;
import com.gdsc.petwalk.domain.member.service.MemberService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.security.SecurityRequirements;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
import com.gdsc.petwalk.domain.pet.service.PetService;
import com.gdsc.petwalk.global.principal.PrincipalDetails;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
Expand Down Expand Up @@ -41,6 +43,7 @@ public class PetController {
@PreAuthorize("isAuthenticated()")
@Operation(summary = "회원가입 후 펫 생성 로직", description = "회원가입 후 펫 생성 로직")
@ApiResponse(responseCode = "200", description = "회원가입 후 펫 생성, 성공 시 등록 펫 id 값 반환")
@Parameter(description = "ex) Bearer eyzaqwd...", name = "Authorization", in = ParameterIn.HEADER)
public ResponseEntity<PetResultDto<Long>> createPet(
@RequestPart("petCreateRequestDto") PetCreateRequestDto petCreateRequestDto,
@RequestPart("uploadPhoto") MultipartFile file,
Expand Down

0 comments on commit ca63c1b

Please sign in to comment.