카카오 로그인(회원가입)

REQUEST

POST /api/auth/kakao HTTP/1.1
Content-Type: application/json;charset=UTF-8
Host: localhost:8080

code=dCBtBeJy0NzZhRzVxqptBg4jvxgD11zsPsXhPGXx-Wy05qVNK0if0sFwqA7OTglVJjtVdwoqJQ4AAAGIlPJfEQ
Parameter Description

code

카카오 로그인 후 제공받은 코드

RESPONSE

{
  "success" : false,
  "result" : {
    "socialUserId" : "123123",
    "email" : "eee@www.aaaa",
    "nickname" : "유저1",
    "loginType" : "KAKAO"
  }
}
Path Type Description

success

Boolean

성공 여부

result.socialUserId

String

소셜 유저 아이디

result.email

String

유저 이메일

result.nickname

String

닉네임

result.loginType

String

로그인 타입

로그아웃

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

success

Boolean

성공 여부

result

Boolean

성공 여부

닉네임 변경

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

nickname

String

닉네임

RESPONSE

{
  "success" : true,
  "result" : true
}
Path Type Description

success

Boolean

성공 여부

result

Boolean

성공 여부