Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] 파일 PreSigned-Url 발급 API 개발 #119

Merged
merged 3 commits into from
Aug 24, 2023

Conversation

yeseul106
Copy link
Member

📝 Summary

  • 파일 PreSigned-Url을 발급하는 API를 개발합니다.

👩‍💻 Contents

  • 파일 PreSigned-Url을 발급합니다.

image

스크린샷 2023-08-24 오후 5 11 29
  • 해당 파일을 업무 카드 생성 시, 같이 DB에 저장할 수 있도록 구현했습니다.
image
  • 키워드 생성 시, 에러 났던 부분 수정 완료 했습니다.
  • 카테고리 및 업무명 수정 & 추가 시, 한글 자음과 모음이 안되는 오류 수정했습니다.

📝 Review Note

📣 Related Issue

📬 Reference

Copy link
Contributor

@unanchoi unanchoi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

review 남겼습니다~!

@ApiResponse(responseCode = "500", description = "서버 오류", content = @Content)
}
)
@PostMapping("/files/presigned")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p3;

presigined-url 발급 자체가 서버 리소스의 변화를 일으키지는 않는 것 같은데 POST보다는 GET API를 만드는 것이 어떨까요?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

넵 확인했습니다 ! HTTP의 정신 !!!!!

}
)
@PostMapping("/files/presigned")
@ResponseStatus(HttpStatus.OK)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p2;

statusCode와 @ResponseStatus 가 일치하지 않습니다~!

private String url;

@Schema(description = "파일 사이즈", example = "2.1")
private Double size;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p4;

file size에 Double을 사용하신 이유가 있는지 궁금합니다!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확인 ! KB 기준으로 int로 바꾸겠습니다 !

Copy link
Member

@Seokyeong237 Seokyeong237 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확인완료우 수고하셧슴다!!

@yeseul106 yeseul106 merged commit 6501c9c into develop Aug 24, 2023
1 check passed
@unanchoi unanchoi deleted the feat/#110-file-get-presigned-url-api branch August 24, 2023 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] 파일 PreSigned-Url 요청 API 개발
3 participants