GET api/user/details
response
{
"name": "이지수",
"grade": 1
}
GET /api/subject/:grade(int)
response
[
{
"subjectId": 1,
"subjectName": "수학",
"img": "이미지.png"
},
{
"subjectId": 2,
"subjectName": "국어",
"img": "이미지.png"
}
]
GET /api/subject/home/:subjectId
response
{
"subjectId": 1,
"exams": [
{
"id": 1,
"examName": "Midterm Exam",
"examScore": 85
},
{
"id": 2,
"examName": "Final Exam",
"examScore": 92
}
],
"date": "2022-12-31",
"level": 3,
"goalScore": 95,
"fail": 0
}
→ 디데이 일수는 프론트에서 구하는게 더 빠를것 같아서 일단 날짜만 보내도록 만들었습니다.
GET /api/note/top3ranges/:subjectId
response
[
"교과서",
"자료",
"참고서"
]