POST /api/register
body
{
"email": string,
"password": string,
"nickName": string
}
POST /api/authenticate
body
{
"email": string,
"password": string
}
POST /api/nickName
headers
{
"jwt": string
}
body
{
"nickName": string
}
POST /api/user/profile
headers
{
"jwt": string
}
body(formdata)
{
"profileImage": multipart-file
}
GET /api/user/<유저ID>
headers
{
"jwt": string
}
GET /api/course/<수업ID>
headers
{
"jwt": string
}
GET /api/course/all
headers
{
"jwt": string
}
GET /api/course/my
headers
{
"jwt": string
}
POST /api/course
headers
{
"jwt": string
}
body
{
"title": string
}
PUT /api/course/update
headers
{
"jwt": string
}
body
{
"id": string,
"title": string,
"learns": array<string>,
"status": string(ready/pending),
"price": integer,
"detail": string,
"chapters": [
{
"id": string,
"title": string,
"lectures": [
{
"id": string,
"title": string,
"videoId": string
},
...
]
},
...
]
}
POST /api/course/<수업ID>/thumbnail
headers
{
"jwt": string
}
body(formdata)
thumbnailImage - multipartfile
DELETE /api/course/<수업ID>
headers
{
"jwt": string
}
PUT /api/course/<수업ID>/rating/save
headers
{
"jwt": string
}
body
{
"star": integer,
"comment": string
}
DELETE /api/course/<수업ID>/rating/<리뷰ID>
headers
{
"jwt": string
}
PUT /api/course/<수업ID>/qna/save
headers
{
"jwt": string
}
body
{
"star": integer,
"comment": string
}
DELETE /api/course/<수업ID>/qna/<질문ID>
headers
{
"jwt": string
}
body
{
"title": string,
"question": string
}