-
Notifications
You must be signed in to change notification settings - Fork 0
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
Ticket relationship(Bookmark, Buy) API 앱 분리 #8
Comments
jseop-lim
changed the title
Ticket relationship(Bookmark, Buy) CRUD API 앱 분리
Ticket relationship(Bookmark, Buy) API 앱 분리
May 1, 2022
jseop-lim
added a commit
that referenced
this issue
May 1, 2022
mypage/views 디렉토리 생성, *_views.py를 아래로 이동 - views.py의 이름을 user_views.py로 변경 - 새로운 파일 ticekt_views.py 생성 urls.py에서 import path 수정 (#8)
jseop-lim
added a commit
that referenced
this issue
May 1, 2022
mypage/serializers 디렉토리 생성, *_serializers.py를 아래로 이동 - serializers.py의 이름을 user_serializers.py로 변경 - 새로운 파일 ticket_serializers.py 생성 config/urls.py에서 mypage.urls의 path를 ''로 변경 mypage url path 앞에 'users/' 추가 user serializers, user views 클래스 이름 앞에 User 추가 (#8)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
현행
문제
해결
현행으로 mypage CRUD 관련하여 단일 앱 유지
-> 단일 책임 원칙 위배
bookmark, buy 관련 새로운 앱 생성
-> mypage에는 모델 없고, 새로운 앱의 models.py에 종속적
-> API gateway도 새로 앱으로 만들 경우, 총 4개의 앱이나 운영하게 됨.
The text was updated successfully, but these errors were encountered: