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 - 더미 앱 생성 api 구현 #75

Merged
merged 6 commits into from
Jan 18, 2024
Merged

Conversation

kseysh
Copy link
Member

@kseysh kseysh commented Jan 17, 2024

Related issue 🚀

Work Description 💚

  • 유튜브, 넷플릭스, 인스타그램 이름 및 이미지 url 반환 api 생성

PR 참고 사항

  • @depricated 설정을 통해 데모데이 이후 삭제하도록 설정해놓았습니다. (또한 dummy 폴더에 모아놓아 dummy 폴더만을 삭제하면 되도록 하였습니다.)
  • AUTH_WHITELIST에 더미 데이터 반환 엔드포인트를 추가하여 인증되지 않더라도 반환 값을 받을 수 있도록 구현하였습니다.

@kseysh kseysh added ✨ Feat 새로운 기능 추가 👨🏻‍💻 승환 승환이가 작성한 Label 🔥 Pull Request labels Jan 17, 2024
@kseysh kseysh requested a review from jumining January 17, 2024 20:22
@kseysh kseysh self-assigned this Jan 17, 2024
Copy link
Collaborator

@jumining jumining left a comment

Choose a reason for hiding this comment

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

@depricated 설정한거 좋습니다👍

Comment on lines +6 to +17
@Deprecated
public record DummyAppListResponse(
List<DummyApp> apps
) {
public static DummyAppListResponse of() {
List<DummyApp> dummyAppList = new ArrayList<>();
dummyAppList.add(new DummyApp("Netflix","https://github.com/Team-HMH/HMH-Server/assets/69035864/dd068b83-641a-4bff-b4f5-381ea6e04d44"));
dummyAppList.add(new DummyApp("Instagram","https://github.com/Team-HMH/HMH-Server/assets/69035864/bd572377-9dd9-47e7-a9f4-9efbbe66cd2e"));
dummyAppList.add(new DummyApp("YouTube","https://github.com/Team-HMH/HMH-Server/assets/69035864/8afa60c0-bf1d-4ff0-9b50-4d1558a71f0a"));
return new DummyAppListResponse(dummyAppList);
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Q. 앱 3개를 한꺼번에 반환 해주는 건가요?

Copy link
Member Author

Choose a reason for hiding this comment

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

그렇게 반환해달라는 클라이언트의 요청이 있었습니다!
금방 삭제할 api이므로 복잡하게 여러 파일로 확장성을 위해 분할하는 것 보다 한 파일에 작성하고 한 번에 삭제할 수 있도록 하였습니다!

@kseysh kseysh merged commit 4b88bc9 into develop Jan 18, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feat 새로운 기능 추가 👨🏻‍💻 승환 승환이가 작성한 Label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat - 더미 데이터 반환 api
2 participants