공통
Header의 'token' 필드에 JWT 토큰 달고 요청, 이 필드가 없을 시 비회원으로 간주
만료된 토큰이라면, 401 Unauthorized 오류를 뱉을 것
/rooms/detail/{id}
/rooms/join/{id}
/rooms/solved/
/rooms/create/
GET /auth/solvedac_token : 회원가입 시 인증을 위한 solved.ac 토큰 발급
Request : x
Response : {"token":string,"expires_at":datetime}
POST /auth/register : 회원가입
Request : Body(handle, email, password)
Response : {"result": "success"}
Exception :
409 "Handle or email already taken"
404 "User not found"
400 "Token validation failed"
POST /auth/login : 로그인
Request : Body(handle, password, remember_me: bool)
Response :
{
"result": "success",
"token": str
}
Exception :
404 "User not found"
401 "Incorrect password"
https://lucid.app/lucidchart/db4ebab8-2daa-436c-ab1d-645b0aac266f/edit?viewport_loc=-122%2C-504%2C1727%2C1127%2C0_0&invitationId=inv_f5eb09a0-c825-406c-b2d2-0ebd69b3e0d4