카카오 로그인(회원가입)
REQUEST
POST /api/auth/kakao HTTP/1.1
Content-Type: application/json;charset=UTF-8
Host: localhost:8080
code=dCBtBeJy0NzZhRzVxqptBg4jvxgD11zsPsXhPGXx-Wy05qVNK0if0sFwqA7OTglVJjtVdwoqJQ4AAAGIlPJfEQ
Parameter | Description |
---|---|
|
카카오 로그인 후 제공받은 코드 |
RESPONSE
{
"success" : false,
"result" : {
"socialUserId" : "123123",
"email" : "eee@www.aaaa",
"nickname" : "유저1",
"loginType" : "KAKAO"
}
}
Path | Type | Description |
---|---|---|
|
|
성공 여부 |
|
|
소셜 유저 아이디 |
|
|
유저 이메일 |
|
|
닉네임 |
|
|
로그인 타입 |
로그아웃
REQUEST
DELETE /api/auth/logout HTTP/1.1
Content-Type: application/json;charset=UTF-8
Host: localhost:8080
RESPONSE
{
"success" : true,
"result" : true
}
Path | Type | Description |
---|---|---|
|
|
성공 여부 |
|
|
성공 여부 |
닉네임 변경
REQUEST
PATCH /api/user/info HTTP/1.1
Content-Type: application/json;charset=UTF-8
Content-Length: 28
Host: localhost:8080
{
"nickname" : "유저2"
}
Path | Type | Description |
---|---|---|
|
|
닉네임 |
RESPONSE
{
"success" : true,
"result" : true
}
Path | Type | Description |
---|---|---|
|
|
성공 여부 |
|
|
성공 여부 |