Member
회원가입
POST /api/v1/members
Request Body
Name
Type
Description
email*
string
password*
string
nickname*
string
{
"message": "회원가입 성공"
}{
"code": "MEMBER_001",
"message": "중복된 이메일입니다",
"detail_message": "이미 가입된 이메일입니다"
}{
"code": "JSON_001",
"message": "잘못된 JSON 요청입니다",
"detail_message": "공백일 수 없습니다"
}로그인
POST /api/v1/members/login
Request Body
Name
Type
Description
email*
string
password*
string
{
"access_token": "eyJ0eXAiOiJKV1QiLCJh...",
"refresh_token": "eyJ0eXAiOiJKV1QiLCj..."
}{
"code": "JSON_001",
"message": "잘못된 JSON 요청입니다",
"detail_message": "공백일 수 없습니다"
}토큰 재발급
GET /api/v1/reissue
Headers
Name
Type
Description
Authorization*
string
refreshToken
{
"access_token": "eyJ0eXAiOiJKV1QiLCJh..."
}{
"code": "TOKEN_001",
"message": "유효하지 않은 토큰입니다",
"detail_message": "An error occurred while attempting to decode the Jwt: Jwt expired at 2023-09-30T13:57:22Z"
}회원정보 조회
GET /api/v1/members
Headers
Name
Type
Description
Authorization*
string
accessToken
{
"nickname": "임시완"
}{
"code": "TOKEN_001",
"message": "유효하지 않은 토큰입니다",
"detail_message": "An error occurred while attempting to decode the Jwt: Jwt expired at 2023-09-30T13:57:22Z"
}회원정보 수정
PATCH /api/v1/members
Headers
Name
Type
Description
Authorization*
string
accessToken
Request Body
Name
Type
Description
nickname
string
password
string
{
"message": "닉네임 변경 성공"
}{
"code": "JSON_001",
"message": "잘못된 JSON 요청입니다",
"detail_message": "공백일 수 없습니다"
}{
"code": "TOKEN_001",
"message": "유효하지 않은 토큰입니다",
"detail_message": "An error occurred while attempting to decode the Jwt: Jwt expired at 2023-09-30T13:57:22Z"
}회원탈퇴
DELETE /api/v1/members
Headers
Name
Type
Description
Authorization*
string
accessToken
{
"message": "회원탈퇴 성공"
}{
"code": "TOKEN_001",
"message": "유효하지 않은 토큰입니다",
"detail_message": "An error occurred while attempting to decode the Jwt: Jwt expired at 2023-09-30T13:57:22Z"
}Last updated