1. Quick Start Guide
- [advanced setting]

2. Model 설정
- User → strapi 있는 그대로
- User는 인증정보만
- Profile은 서비스에 필요한 것들
- 퀴즈, 댓글, 좋아요 ,…
- Quiz
api
- "_id": String, "category": String, "questionType": String // 문제 유형(trueOrFalse | multipleChoice | shortAnswer) "question": String, "image": Optional<String>, "answer": String, "explanation": String, // 정답 설명 "difficulty": Number, "importance": Number, + "correctCnt" : Number + "incorrectCnt" : Number "quiz_pack": QuizPack, "creator": User, - "likes": Like[], - "comments": Comment[], - "createdAt": String, - "updatedAt": String
- QuizPack
api
{ - "_id": String, "title": String, "tag": String[] // 태그[] "descriptipn": String // 퀴즈세트 설명 내용 "creator": User, "quizzes": Quiz[], - "createdAt": String, - "updatedAt": String }
- Profile
api
{ - "_id": String, "points": Number "users_permissions_user" : User, "achivements":Acivement[], "quizzes": Quiz[], "quiz_packs" :QuizPack[] -"likes": Like[], -"comments": String[], -"notifications": Notification[], }
- Achievement
api
{ "title" : String "profiles": Profile[] ? "color: String }
- Comment
- 생략
- Like
- 생략
3. api 요청
?populate=%2A
를 통해 relation된 속성들 받아올 수 있다.- 공홈 관련 링크
- but 2depth relation된 data 어떻게 가져오지?
- quizzez 요청 → profile → User의 nickname 가져오고 싶을 때?
- 배열형태로 연결해서 가져올 수 있다. + qs 라이브러리로 편하게
