# signup

## 회원가입

<mark style="color:green;">`POST`</mark> `http://rightnow.p-e.kr/user/signup`

#### Request Body

| Name                                         | Type   | Description          |
| -------------------------------------------- | ------ | -------------------- |
| email                                        | String | 임시계정 회원가입시 불필        |
| nick\_name<mark style="color:red;">\*</mark> | String |                      |
| password<mark style="color:red;">\*</mark>   | String |                      |
| type                                         | String | 'TEMP' 임시계정 회원가입시만 필 |

{% tabs %}
{% tab title="201: Created 회원가입 요청 성공/ 쿠키에 refreshToken 저장" %}

```javascript
{
    "accessToken":accessToken
    "message":"ok"
}
```

{% endtab %}

{% tab title="409: Conflict 닉네임이 존재함" %}

```javascript
{
    'message': 'exists nickname'
}
```

{% endtab %}

{% tab title="409: Conflict 이메일이 이미 존재함" %}

```javascript
{
    "message": 'email exists'
}
```

{% endtab %}

{% tab title="400: Bad Request 파라미터가 불충분함" %}

```javascript
{
    "message": 'insufficient parameters supplied'
}
```

{% endtab %}

{% tab title="500: Internal Server Error 서버 에러" %}

```javascript
{
    "message":"err"
}
```

{% endtab %}
{% endtabs %}
