User

UserInfo

GET https://server.dorunapp.com/user/{userId}

Headers

Name
Type
Description

Authorization*

String

Cookie

{
    "data": {
        "nickname" : "string",
        "password" : "null"
        "email" : "string",
        "image" : "string",
        "medal" : [...,string],
        "log" : [...,string],
        "oauth" : "string"
        "isauth" : boolean,
        "crewId" : int
    }
    "message" : "success"
}

Signup

POST https://server.dorunapp.com/user/signup

Request Body

Name
Type
Description

nickname*

String

user nickname

password*

String

user password

email*

String

user email

{
    "data": {
        "id" : number,
        "nickname" : "string",
        "password" : "string"
        "email" : "string"
    }
    "message" : "success"
}

Signout

DELETE https://server.dorunapp.com/user/signout/{userId}

Headers

Name
Type
Description

Authorization*

String

Cookie

{
    "message" : "success"
}

Login

POST https://server.dorunapp.com/user/login

Request Body

Name
Type
Description

email*

String

user email

password*

String

user password

{
    "data": {
        "nickname" : "string",
        "password" : "null"
        "email" : "string",
        "image" : "string",
        "medal" : [...,string],
        "log" : [...,string],
        "oauth" : "string"
        "isauth" : boolean,
        "crewId" : int
    }
    "message" : "success"
}

Logout

POST https://server.dorunapp.com/user/logout

Headers

Name
Type
Description

Authorization*

String

Cookie

{
    "message" : "success"
}

UserEdit

PATCH https://server.dorunapp.com/user

Headers

Name
Type
Description

Authorization*

String

Cookie

Request Body

Name
Type
Description

nickname

String

user nickname

image

String

user iamge

email

String

user email

password

String

user password

{
    "data": {
        "id" : number,
        "nickname" : "string",
        "password" : "string",
        "email" : "string",
        "image" : "string"
    }
    "message" : "success"
}

Oauth login

POST https://server.dorunapp.com/user/oauth

Request Body

Name
Type
Description

Authorization*

String

Authorization Grant

{
    "data": {
        "nickname" : "string",
        "password" : "null"
        "email" : "string",
        "image" : "string"
    }
    "message" : "success"
}

Confirm Email Resend

POST https://server.dorunapp.com/user/confirm_email

Request Body

Name
Type
Description

userId*

number

email*

String

{
    "message" : "success"
}

User Password Reset

PATCH https://server.dorunapp.com/user/reset_password

Request Body

Name
Type
Description

email*

String

{
    "message" : "success"
}

Guest Login

POST https://server.dorunapp.com/user/guest_login

{
    "data": {
        "nickname" : "string",
        "password" : "null"
        "email" : "string",
        "image" : "string"
    }
    "message" : "success"
}

User History Edit

GET https://server.dorunapp.com/user.history

Request Body

Name
Type
Description

userId*

Number

data*

String

{
    "data":
    {
        userInfo
    }
}

Last updated