localhost:8000/comment/
localhost:8000/product/
Name
Type
Description
id
Number
제품의 Primary Key
comments
Array
제품에 달린 댓글
comment_count
Number
제품의 달린 댓글 개수
image
String
제품의 대표 사진
avg_rate
Number
제품의 별점
name
String
제품의 이름
company
String
제품의 제조회사
price
Number
제품의 가격
category
String
제품의 카테고리
description
String
제품의 상세설명
created_at
Date
데이터 추가 날짜
updated_at
Date
데이터 변경 날짜
Comment Response Message
Comment는 Product와 1:N Foriegn Key 관계를 가집니다.
Name
Type
Description
id
Number
댓글의 Primary Key
user
String
댓글을 작성한 유저 닉네임
comment
String
댓글 내용
rate
Number
별점
created_at
Date
댓글 추가 날짜
product
Number
댓글을 작성한 제품
Name
Type
Description
uid
String
유저 ID
name
String
유저 닉네임
image
Image
유저 프로필 이미지
Subscription Response Message
Name
Type
Description
uid
String
구독중인 유저의 ID
product
Array
구독중인 제품의 정보
start_at
Date
구독 시작 날짜
필터링은 product에서만 제공합니다.
검색 필터링은 필드 필터링 과 동시에 사용해야 합니다.
search_fields=[FIELD VALUE]
검색하고자 하는 필드는 2개 이상 선택할 수 있습니다.
다중 검색을 할 때는 & 문자를 사용해야 합니다.
-[FIELD VALUE] 를 사용하여 desc로 정렬할 수 있습니다.
localhost:8000/product/?search=비타민&search_fields=name&search_fields=company&ordering=-price