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

# Like

## Like Post

<mark style="color:green;">`POST`</mark> `http://localhosy:8000/like/:postId`

#### Path Parameters

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

#### Cookies

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

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

```javascript
{
  "status" : true,
  "data" : {
    "id" : 1,
    "postId" : 1,
    "userId" : 2,
  }
}
```

{% endtab %}

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

```javascript
{
  "status" : false,
  "message" : "로그인이 되어있지 않은 사용자입니다."
  }
```

{% endtab %}

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

```javascript
{
  "status" : false,
  "message" : "server error"
  }
```

{% endtab %}
{% endtabs %}
