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

[mypage/serializer] Bookmark Ticket JSON 반환 데이터 형식 #4

Open
jseop-lim opened this issue Apr 21, 2022 · 0 comments
Open

Comments

@jseop-lim
Copy link
Collaborator

jseop-lim commented Apr 21, 2022

{
    "ticket":
    {
        "id": 1
        기타 티켓 리스트에 표기되는 정보
    }
    ...
		
}

결정사항

1. ticket마다 출력할 정보

  1. hyperlink / ticket_id
    • 각 양도권 데이터에 다시 접속해야 함
    • 오히려 ticket api에서 리스트에 출력할 정보만 따로 다룬다면 괜찮을지도
  2. ticket list에만 보이는 정보들 (전체 속성의 부분집합)
    • 필요한 데이터만 축약하여 전달 가능
    • 출력 필드 바뀔 때마다 반환하는 필드 목록 수정 필요
  3. ticket의 모든 속성
    • list 출력에 불필요한 속성까지 반환
@jseop-lim jseop-lim changed the title [mypage] JSON 반환 데이터 형식 [mypage] JSON 데이터 형식 Apr 21, 2022
@jseop-lim jseop-lim changed the title [mypage] JSON 데이터 형식 [mypage] JSON 반환 데이터 형식 Apr 21, 2022
@jseop-lim jseop-lim changed the title [mypage] JSON 반환 데이터 형식 [mypage/serializer] Bookmark Ticket JSON 반환 데이터 형식 Apr 21, 2022
jseop-lim added a commit that referenced this issue Apr 30, 2022
한 사용자가 북마크한 양도권 목록을 보여준다.
(serializers) TicketListSerializer 정의
(views) BookmarkView 정의
(urls) config에 `users/` 추가, mypage에 'bookmark' 추가

(#4)
jseop-lim added a commit that referenced this issue Apr 30, 2022
구매내역, 판매내역
(serializer) 거래 date를 포함하는 BuySerializer 정의
(view) BuyView, SellView 정의
(url) mypage에 'buy', 'sell' 추가

(#4 #5)
jseop-lim added a commit that referenced this issue Apr 30, 2022
bookmark api에 bookmark id가 함께 출력되도록 수정
(serializer) BookmarkSerializer 추가
(view) list() 내 queryset을 bookmark objects로 수정

(#4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant