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

[Front][API] httpGet으로 api 요청해서 싱글톤 클래스로 저장, 페이지에서 원하는 값 가져와서 사용하는법 #30

Open
sunJ0120 opened this issue Apr 26, 2024 · 0 comments
Assignees
Labels
Notice notice label

Comments

@sunJ0120
Copy link

https://velog.io/@sunj_0120/%EC%BA%A1%EC%8A%A4%ED%86%A4front-%EC%A7%80%EA%B8%88%EA%B9%8C%EC%A7%80%EC%9D%98-%EA%B5%AC%ED%98%84-%EC%82%AC%ED%95%AD-%ED%9D%90%EB%A6%84-%EC%A0%95%EB%A6%AC%ED%95%98%EA%B8%B0MainAccount-api-%EC%9A%94%EC%B2%AD%EC%9C%BC%EB%A1%9C-%EA%B0%92-get-%ED%95%98%EA%B8%B0

여기에 api 연결하고, 값 가져와서 사용하는법 정리해두었습니다.
원활한 연동과 시간 단축을 위해, 프론트 분들은 각각 맡으신 부분에 대해 해당 틀을 미리 만들어 두시는게 좋을 것 같습니다.
httpGet의 경우 제 브랜치(sunJ)의 lib -> util 내부에 있으니 보고 대강 사용해보시면 됩니다.

api로 보내는 방법도 방식만 약간 다르지 거의 비슷합니다. 이 부분도 정리해서 해당 이슈 쓰레드로 남기겠습니다

@sunJ0120 sunJ0120 added the Notice notice label label Apr 26, 2024
@sunJ0120 sunJ0120 self-assigned this Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Notice notice label
Projects
None yet
Development

No branches or pull requests

1 participant