> For the complete documentation index, see [llms.txt](https://jiji6027.gitbook.io/moviebox/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jiji6027.gitbook.io/moviebox/reference/movie-box-reference/coment.md).

# Coment

## 해당 유저의 댓글 데이터를 가져옴

<mark style="color:blue;">`GET`</mark> `https://MovieBox.api/coment`

#### Headers

| Name          | Type   | Description |
| ------------- | ------ | ----------- |
| authorization | String | token       |

#### Request Body

| Name   | Type   | Description |
| ------ | ------ | ----------- |
| userId | String | user id     |

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

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="500: Internal Server Error " %}

```javascript
{
    // Response
}
```

{% endtab %}

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

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

## 댓글을 남김

<mark style="color:green;">`POST`</mark> `https://MovieBox.api/coment`

#### Headers

| Name          | Type   | Description |
| ------------- | ------ | ----------- |
| authorization | String | token       |

#### Request Body

| Name   | Type   | Description  |
| ------ | ------ | ------------ |
| rating | Int    | Movie rating |
| coment | String | coment       |

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

```javascript
{
    // Response
}
```

{% endtab %}

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

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="204: No Content " %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

## 댓글을 수정함

<mark style="color:orange;">`PUT`</mark> `https://MovieBox.api/coment`

#### Headers

| Name          | Type   | Description |
| ------------- | ------ | ----------- |
| authorization | String | token       |

#### Request Body

| Name   | Type   | Description  |
| ------ | ------ | ------------ |
| rating | String | movie rating |
| coment | String | coment       |

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

```javascript
{
    // Response
}
```

{% endtab %}

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

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="204: No Content " %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}
