Skip to content

Commit

Permalink
[Docs] Register user token for testing with Swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnsugyeong committed Mar 3, 2024
1 parent bd635ef commit fce3c47
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public OpenAPI api() {
---
### 🔑 테스트 사용자 인증 토큰
eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI3N2E5MTZmMS02YzZlLTRlYjMtYTIzMS0xODc5NmFlMzU3ZmMiLCJhdXRoIjoiUk9MRV9VU0VSIiwiZXhwIjoxNzEyMDQyMTMzfQ.5_NeIGZOwoMQxlsKfo1B73Ksu8qKKFK7yH3IopYajG8
""");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public ApiResponseDto<Long> initializeMemberProfile(
ErrorStatus._INTERNAL_SERVER_ERROR
})
@PutMapping(consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
public ApiResponseDto<Long> updateInfo(@RequestPart MemberUpdateDto updateMemberRequest,
public ApiResponseDto<Long> updateInfo(@RequestPart("updateMemberRequest") MemberUpdateDto updateMemberRequest,
@RequestPart(value = "memberProfileImg", required = false) MultipartFile memberProfileImg,
@RequestParam("allowUpload") boolean allowUpload,
@AuthUser Member member) {
Expand All @@ -95,7 +95,7 @@ public ApiResponseDto<Long> updateInfo(@RequestPart MemberUpdateDto updateMember
ErrorStatus._INTERNAL_SERVER_ERROR
})
@GetMapping("/{memberId}")
public ApiResponseDto<MemberDetailDto> getMemberInfo(@PathVariable Long memberId) {
public ApiResponseDto<MemberDetailDto> getMemberInfo(@PathVariable("memberId") Long memberId) {
Member member = memberQueryService.getMemberById(memberId);
return ApiResponseDto.onSuccess(MemberConverter.toMemberDetailDto(member));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class PetApiController {
ErrorStatus._INTERNAL_SERVER_ERROR
})
@PostMapping(consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
public ApiResponseDto<Long> createPet(@RequestPart @Validated PetRequest createPetRequest,
public ApiResponseDto<Long> createPet(@RequestPart("createPetRequest") @Validated PetRequest createPetRequest,
@RequestPart(value = "petProfileImg", required = false) MultipartFile petProfileImg,
@AuthUser Member member) {
Long petId = petCommandService.createPet(createPetRequest, petProfileImg, member);
Expand All @@ -55,7 +55,7 @@ public ApiResponseDto<Long> createPet(@RequestPart @Validated PetRequest createP
})
@PutMapping(value = "/{petId}", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
public ApiResponseDto<Long> updatePet(@PathVariable("petId") Long petId,
@RequestPart @Validated PetRequest updatePetRequest,
@RequestPart("updatePetRequest") @Validated PetRequest updatePetRequest,
@RequestPart(value = "file", required = false) MultipartFile petProfileImg,
@RequestParam("allowUpload") boolean allowUpload,
@AuthUser Member member) {
Expand Down

0 comments on commit fce3c47

Please sign in to comment.