%F0%9F%8C%B7 USER %F0%9F%8C%B7 - Polaris-Sopterm/Polaris-BACKEND GitHub Wiki
- 회원가입 API
createUser
- 사용자 수정 API
updateUser
- 이메일 중복 체크 API
checkEmail
- 로그인 API
emailLogin
- 회원탈퇴 API
emailLogin
- 로그아웃 API
logout
- 액세스 토큰 재발급 API
refreshLogin
유저의 회원가입 API 입니다.
- 이메일, 비밀번호, 닉네임이 누락된 경우 에러가 발생합니다.
- 이메일 형식이 올바르지 않을 경우 에러가 발생합니다.
POST
/user/v0
application/json
parameter | Type | Description |
---|---|---|
email |
string | 이메일 |
password |
string | 비밀번호 |
nickname |
string | 닉네임 |
{
"idx": {integer},
"email": {string},
"password": {string},
"nickname": {string},
"createdAt": {string},
"updatedAt": {string},
}
유저의 닉네임을 변경할 수 있습니다
PATCH
/user/v0/me
application/json
, Authorization Baerer
parameter | Type | Description |
---|---|---|
nickname |
string | 닉네임 |
{
"idx": {integer},
"email": {string},
"password": {string},
"nickname": {string},
"createdAt": {string},
"updatedAt": {string},
}
이메일 중복 여부를 확인합니다.
POST
/user/v0/checkEmail
application/json
parameter | Type | Description |
---|---|---|
email |
string | 이메일 |
{
"email": {string},
"isDuplicated": false,
}
이메일과 비밀번호를 이용해 로그인합니다.
POST
/auth/v0
parameter | Type | Description |
---|---|---|
email |
string(email)' | 이메일 |
password |
string | 비밀번호 |
{
"accessToken": {string(jwt)},
"refreshToken": {string},
}
유저 회원탈퇴 API 입니다.
DELETE
/user/v0
application/json
token
: Bearer
{
"isSuccess": true,
}
로그아웃 합니다.
DELETE
/auth/v0
200
{
"isSuccess": true
},
액세스 토큰을 재발급 받습니다.
PUT
/auth/v0
parameter | Type | Description |
---|---|---|
refreshToken |
string' | 재발급 토큰 |
{
"accessToken": {string(jwt)},
"refreshToken": {string},
}