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

# 회원가입

## Get Cakes

<mark style="color:green;">`POST`</mark> `https://api.elegantsiblings.xyz/members/signup/`

This endpoint allows you to get free cakes.

#### Request Body

| Name         | Type   | Description |
| ------------ | ------ | ----------- |
| username     | string | 고유문자 (ID)   |
| password     | string | password    |
| last\_name   | string |             |
| last\_name   | string |             |
| img\_profile | object | 프로필 사       |

{% tabs %}
{% tab title="200 회원가입 완료 회원정보 보여" %}

```javascript
{
    "pk": 52,
    "username": "lee23",
    "first_name": "",
    "last_name": "",
    "email": "",
    "img_profile": null
}
```

{% endtab %}

{% tab title="400 " %}

```
1. 존재하는 username으로 시도할때 
{
    "중복": "이미 존재하는 ID로 회원가입을 시도합니다"
}
2. usernme, password 둘 중 하나이상 없이 회원가입 시도할 때
{
    "password": "This field is required."
}
혹은
{
    "username": "This field is required."
}
```

{% endtab %}
{% endtabs %}
