로그인: POST /auth/login
{ userID: string, password: string }
{ isLoggedIn : bool, message : string }
로그아웃: POST /auth/logout
{ message: string }
ID중복확인 : **POST**/auth/register/check
NickName중복확인 : POST/auth/register/checknick
}
회원가입: POST /auth/register
Input: { userID: string, password: string, username: string, birthdate: string, nickname : string, likeOTTs: string[], likeGenres : string[]}
likeOTTs , likeGenres은 없는 경우 []로 작성해 주세요
birthdate의 경우 yyyy-mm-dd 형식으로 제출해주세요
Output: { isRegistered : bool, message: string }
변경 사항 기록
GET /users/:userId/profile
{ nickname : string, password : string}
POST /users/:userId/profile
{ nickname: string, password: string }
{ isupdated: boolean }
GET /questions
GET /questions/:questionId
{ id: number, title: string, content: string, nickname: string }
POST /questions
{ title: string, content: string }
{ id: number, title: string, content: string }
POST /questions/:questionId
{ title: string, content: string }
{ id: number, title: string, content: string }
DELETE /questions/:questionId
{ id: number }
{ message : string}
POST /questions/:questionId/:userId
(관리자 userId가 “admin”일 경우에만 답변 추가 가능)
{ id: number }
{ answer : string, message : string}