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

# Member

member 관련 api method를 설명한 페이지

## MyPage를 위한 메서드

<mark style="color:blue;">`GET`</mark> `/user`

#### Headers

| Name                                            | Type   | Description             |
| ----------------------------------------------- | ------ | ----------------------- |
| Authorization<mark style="color:red;">\*</mark> | String | login시 생성 된 accessToken |

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

```json
{
    "email": "user@naver.com",
    "username": "user",
    "oauthId": "112233",
    "accountType": "ROLE_USER",
    "oauthProvider": "NAVER",
    "ban": true
}
```

{% endtab %}
{% endtabs %}

## username 변경을 위한 메서드

<mark style="color:purple;">`PATCH`</mark> `/user/username`

#### Headers

| Name                                            | Type   | Description             |
| ----------------------------------------------- | ------ | ----------------------- |
| Authorization<mark style="color:red;">\*</mark> | String | login시 생성 된 accessToken |

#### Request Body

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

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

```json

{
    "email": "user@naver.com",
    "username": "user",
    "oauthId": "112233",
    "accountType": "ROLE_USER",
    "oauthProvider": "NAVER",
    "ban": true
}
```

{% endtab %}
{% endtabs %}
