Users
User actions
회원탈퇴
DELETE https://localhost/users
Cookies
Name
Type
Description
accessToken*
String
{
message: 'byebye'
}{
message: 'server Error'
}{
message: 'no such info'
}유정 정보 변경
PUT https://localhost/users
프로필, 자기소개, pw, img, stack
Cookies
Name
Type
Description
accessToken*
String
Request Body
Name
Type
Description
username
String
pw
String
image
URL
stack
Array
description
String
{
message: 'successfully modified'
}{
message: 'invalid userinfo'
}{
message: 'server Error'
}{
message: 'Not Found'
}내 정보 요청
GET https://localhost/users
Headers
Name
Type
Description
accessToken*
String
{
userinfo: {
username: 'kimcoding',
email: 'kimcoding@abc.com',
stacks: ['react', 'express'],
image: 'URL',
description: 'hi, im ironman',
career: [{title: 'myproject'}, ...]
}
}{
message: 'server Error'
}{
message: 'Not Found'
}로그아웃
GET https://localhost/logout
Cookies
Name
Type
Description
accessToken*
String
{
message: 'logout successed'
}{
message: 'server error'
}{
message: 'please login first'
}{
message: 'Not Found'
}회원가입
POST https://localhost/signup
Request Body
Name
Type
Description
id*
String
must Email
username*
String
image
URL
password*
String
stack
Array
Int
description
String
{
message: 'signup successed'
}{
message: 'invalid info'
} {
message: 'server error'
}{
message: 'Not Found'
}로그인 요청
POST https://localhost/login
Request Body
Name
Type
Description
id*
String
password*
String
{
cookie: {
authorizaion: 'secret token'
}
},
{
message: 'login successed'
}{
message: 'invalid info'
} {
message: 'server error'
}Last updated