Users

Good to know: All the methods shown below are synced to an example Swagger file URL and are kept up to date automatically with changes to the API.

User actions

회원탈퇴

DELETE https://localhost/users

Cookies

Name
Type
Description

accessToken*

String

{
    message: 'byebye'
}

유정 정보 변경

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'
}

내 정보 요청

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'}, ...]
    }
}

로그아웃

GET https://localhost/logout

Cookies

Name
Type
Description

accessToken*

String

{
    message: 'logout successed'
}

회원가입

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'
}

로그인 요청

POST https://localhost/login

Request Body

Name
Type
Description

id*

String

password*

String

{
    cookie: {
        authorizaion: 'secret token'
    }
},
{
    message: 'login successed'
}

Last updated