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

ts 파일 응답 API 구현 #218

Merged
merged 3 commits into from
Nov 29, 2023
Merged

ts 파일 응답 API 구현 #218

merged 3 commits into from
Nov 29, 2023

Conversation

sk000801
Copy link
Member

Issue

Overview

  • query로 musicId청크파일이름.ts을 받아 GET 요청 보냄
  • 서버는 그 경로에 있는 ts 파일을 찾아 Buffer 형태로 제공

Screenshot

요청이 잘 들어갔을 때, 없는 ts 파일을 요청했을 때 (첫번째 사진은 해당 경로에 존재하는 파일 목록입니당)

스크린샷 2023-11-29 015615
스크린샷 2023-11-29 015330
스크린샷 2023-11-29 015432

To Reviewers

ts파일을 Buffer 형태로 반환하는게 맞는지 모르겠습니다.. 더 찾아봐야할 수도 있어요.. 🫠

* 404 NOT_FOUND
* 4010 : 버킷에 해당되는 ts 파일이 없음
* 다만 Buffer 형태로 제공되는데 클라이언트에서 어떻게 형태를 받아와야하는지에 따라 코드 수정 여지 있
@sk000801 sk000801 added ✨ feat 기능 개발 🖥 server server labels Nov 28, 2023
@sk000801 sk000801 added this to the 🎶 music player milestone Nov 28, 2023
@sk000801 sk000801 self-assigned this Nov 28, 2023
@sk000801 sk000801 requested a review from khw3754 as a code owner November 28, 2023 17:01
@sk000801 sk000801 linked an issue Nov 28, 2023 that may be closed by this pull request
@sk000801 sk000801 changed the title ts 파일 반환 API 구현 ts 파일 응답 API 구현 Nov 28, 2023
Copy link
Collaborator

@khw3754 khw3754 left a comment

Choose a reason for hiding this comment

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

좋은 것 같아요! 👍
일단 문제 없어 보이는데 buffer 관련 문제는 안드로이드랑 얘기해봐야 할 것 같아요!

throw new CatchyException(
'NOT_EXIST_TS_IN_BUCKET',
HTTP_STATUS_CODE.NOT_FOUND,
ERROR_CODE.NOT_EXIST_TS_IN_BUCKET,
Copy link
Collaborator

Choose a reason for hiding this comment

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

ERROR_CODE 상세해서 좋은 것 같아요!

Copy link
Member Author

Choose a reason for hiding this comment

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

감사합니다! buffer는 안드분들이랑 얘기해보고 형태 괜찮으면 머지할게용!

@sk000801 sk000801 merged commit 50008b8 into develop Nov 29, 2023
@sk000801 sk000801 deleted the server/feature/183 branch November 29, 2023 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ feat 기능 개발 🖥 server server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.ts 파일 응답 API
2 participants