> For the complete documentation index, see [llms.txt](https://foodfly-status404.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://foodfly-status404.gitbook.io/project/master.md).

# Member Login

## Login

<mark style="color:green;">`POST`</mark> `https://foodfly.shop/members/login/`

This endpoint allows you to get free cakes.

#### Path Parameters

| Name     | Type   | Description                                |
| -------- | ------ | ------------------------------------------ |
| username | string | ID of the cake to get, for free of course. |

#### Query Parameters

| Name     | Type   | Description                                    |
| -------- | ------ | ---------------------------------------------- |
| password | string | Whether the cake should be gluten-free or not. |

{% tabs %}
{% tab title="200 Cake successfully retrieved." %}

```javascript
{
    "user": {
        "pk": pk,
        "username": username,
        "nickname": nickname,
        "first_name": first_name,
        "last_name": last_name,
        "img_profile": img_profile,
        "phone": phone
    },
    "token": token.key
}
```

{% endtab %}

{% tab title="400 Could not find a cake matching this query." %}

```javascript
{
    "detail": "아이디 또는 비밀번호가 일치하지 않습니다."
}
```

{% endtab %}
{% endtabs %}
