HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
프로그래머스 프론트엔드 데브코스 2기
프로그래머스 프론트엔드 데브코스 2기
/
🎊
동근팀
/
🌱
서인수
/
📙
Strapi 리팩토링 _ api명세서 작성회의
📙

Strapi 리팩토링 _ api명세서 작성회의

상태
종료 (Not This Week)
담당자
속성
Jul 5, 2022
Link
Epic
CheQuiz
특이사항
7/5 14시 회의
우선순위
2순위
Quick Start Guide - Strapi Developer Docs
Strapi offers a lot of flexibility. Whether you want to go fast and quickly see the final result, or would rather dive deeper into the product, we got you covered. 👇 Let's get started!
Quick Start Guide - Strapi Developer Docs
https://docs.strapi.io/developer-docs/latest/getting-started/quick-start.html

1. Quick Start Guide

  • [advanced setting]
    • notion image
 

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 라이브러리로 편하게
        • notion image