> For the complete documentation index, see [llms.txt](https://minimanimo.gitbook.io/lumiere-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://minimanimo.gitbook.io/lumiere-api/undefined.md).

# 회원가입

## 회원가입

<mark style="color:green;">`POST`</mark> `/api/users`

general register

#### Headers

| Name                                           | Type   | Description      |
| ---------------------------------------------- | ------ | ---------------- |
| Content-type<mark style="color:red;">\*</mark> | String | application/json |

#### Request Body

| Name                                       | Type   | Description |
| ------------------------------------------ | ------ | ----------- |
| email<mark style="color:red;">\*</mark>    | String |             |
| password<mark style="color:red;">\*</mark> | String |             |
| name<mark style="color:red;">\*</mark>     | String |             |

{% tabs %}
{% tab title="201: Created " %}

```javascript
{
    "message": "회원가입 성공"
}
```

{% endtab %}

{% tab title="400: Bad Request " %}

```javascript
{
    "message": "모든 항목은 필수입니다"
}
```

{% endtab %}
{% endtabs %}

## 이메일 중복검사

<mark style="color:green;">`POST`</mark> `/api/users/email`

for general register

#### Headers

| Name                                           | Type   | Description      |
| ---------------------------------------------- | ------ | ---------------- |
| Content-type<mark style="color:red;">\*</mark> | String | application/json |

#### Request Body

| Name                                    | Type   | Description |
| --------------------------------------- | ------ | ----------- |
| email<mark style="color:red;">\*</mark> | String |             |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "message": "사용 가능한 이메일입니다"
}
```

{% endtab %}

{% tab title="401: Unauthorized " %}

```javascript
{
    "message": "이미 해당 이메일이 존재합니다"
}
```

{% endtab %}
{% endtabs %}
