> For the complete documentation index, see [llms.txt](https://magababo.gitbook.io/munjiout/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://magababo.gitbook.io/munjiout/master.md). Agents can also search and read this documentation through its [MCP server](https://magababo.gitbook.io/munjiout/~gitbook/mcp).

# MunjiOut

API documents for MunjiOut

## Main Page Auth

<mark style="color:blue;">`GET`</mark> `http://munjiout/mainpage`

Main Page

#### Headers

| Name           | Type   | Description          |
| -------------- | ------ | -------------------- |
| Authentication | string | Authentication token |

{% tabs %}
{% tab title="200 Authorization Success" %}

```
```

{% endtab %}

{% tab title="403 Authorization Denied" %}

```
{    message: "you are not logged in"}
```

{% endtab %}
{% endtabs %}

## Login

<mark style="color:green;">`POST`</mark> `http://munjiout/login`

User Login

#### Headers

| Name           | Type   | Description          |
| -------------- | ------ | -------------------- |
| Authentication | string | Authentication token |

#### Request Body

| Name     | Type   | Description   |
| -------- | ------ | ------------- |
| email    | string | User Email    |
| password | string | User Password |

{% tabs %}
{% tab title="200 Login Success" %}

```
{    accessToken, refreshToken, message: "logged in successfully"}
```

{% endtab %}

{% tab title="403 Already Login" %}

```
{    message: "you are already logged in" }
```

{% endtab %}

{% tab title="404 Invalid Login" %}

```
{    message: "invalid user" }
```

{% endtab %}

{% tab title="417 Lack of Information" %}

```
{    message: "please fill in all the required fields." }
```

{% endtab %}
{% endtabs %}

## Logout

<mark style="color:green;">`POST`</mark> `http://munjiout/logout`

User Logout

#### Headers

| Name          | Type   | Description          |
| ------------- | ------ | -------------------- |
| Authorization | string | Authentication token |

{% tabs %}
{% tab title="205 Logout Success" %}

```
{    message: "logged out successfully" }
```

{% endtab %}

{% tab title="403 Logout Fail" %}

```
{    message: "you are not logged in" }
```

{% endtab %}
{% endtabs %}

## Signup

<mark style="color:green;">`POST`</mark> `http://munjiout/signup`

User Signup

#### Request Body

| Name     | Type   | Description |
| -------- | ------ | ----------- |
| username | string | username    |
| email    | string | email       |
| password | string | password    |
| mobile   | string | mobile      |
| address  | string | address     |

{% tabs %}
{% tab title="201 Signup Success" %}

```
{    message: 'thank you for signing up!' }
```

{% endtab %}

{% tab title="403 Already Signup " %}

```
{    message: 'you are already a user' }
```

{% endtab %}

{% tab title="409 " %}

```
{    message: conflictMessage }
```

{% endtab %}

{% tab title="422 Lack of Information" %}

```
{    message: 'insufficient parameters supplied' }
```

{% endtab %}
{% endtabs %}

## Withdrawal

<mark style="color:green;">`POST`</mark> `http://munjiout/withdrawal`

User Withdraw

#### Headers

| Name           | Type   | Description          |
| -------------- | ------ | -------------------- |
| Authentication | string | Authentication token |

{% tabs %}
{% tab title="200 Withdrawal Success" %}

```
{    message: "회원탈퇴가 성공적으로 완료되었습니다." }
```

{% endtab %}

{% tab title="404 Not Authorized" %}

```
{    message: "회원정보를 다시 확인해주세요." }
```

{% endtab %}
{% endtabs %}

## Userinfo

<mark style="color:blue;">`GET`</mark> `http://munjiout/userinfo`

User Information

#### Headers

| Name           | Type   | Description          |
| -------------- | ------ | -------------------- |
| Authentication | string | Authentication token |

{% tabs %}
{% tab title="200 Get User Information Success" %}

```
{    message: "유저정보를 불러왔습니다." }
```

{% endtab %}

{% tab title="404 Not Authorized" %}

```
{    message: "존재하지 않는 유저입니다." }
```

{% endtab %}
{% endtabs %}

## Search

<mark style="color:blue;">`GET`</mark> `http://munjiout/search?`

Location Search

#### Query Parameters

| Name     | Type   | Description   |
| -------- | ------ | ------------- |
| Location | string | Location Name |

{% tabs %}
{% tab title="200 Location Search Success" %}

```
```

{% endtab %}

{% tab title="400 Lack of Information" %}

```
{    message: "please enter a search term"}
```

{% endtab %}

{% tab title="404 Location Search Fail" %}

```
{    message: "location not found" }
```

{% endtab %}
{% endtabs %}

## Edit Userinfo

<mark style="color:green;">`POST`</mark> `http://munjiout/editUserinfo`

Edit User Information

#### Headers

| Name           | Type   | Description          |
| -------------- | ------ | -------------------- |
| Authentication | string | Authentication token |

{% tabs %}
{% tab title="200 Edit User Information Success" %}

```
{    message: "회원정보가 수정되었습니다." }
```

{% endtab %}

{% tab title="404 Not Authorized" %}

```
{    message: "로그인이 되어있지 않습니다." }
```

{% endtab %}
{% endtabs %}

## Setting Location

<mark style="color:green;">`POST`</mark> `http://munjiout/setLocation`

Setting User Location

#### Headers

| Name           | Type   | Description          |
| -------------- | ------ | -------------------- |
| Authentication | string | Authentication token |

#### Request Body

| Name          | Type   | Description   |
| ------------- | ------ | ------------- |
| Location Name | string | Location Name |

{% tabs %}
{% tab title="200 Setting Location Success" %}

```
{    message: "즐겨찾기에 추가하였습니다." }
```

{% endtab %}

{% tab title="400 Duplicate Location Name" %}

```
{    message: "같은 유저가 같은 지역을 선택했습니다." }
```

{% endtab %}

{% tab title="404 Not Authorized" %}

```
{    message: "로그인이 되어있지 않습니다." }
```

{% endtab %}
{% endtabs %}

## Unsetting Location

<mark style="color:green;">`POST`</mark> `http://munjiout/unsetLocation`

Unsetting User Location

#### Headers

| Name           | Type   | Description          |
| -------------- | ------ | -------------------- |
| Authentication | string | Authentication token |

#### Request Body

| Name          | Type   | Description   |
| ------------- | ------ | ------------- |
| Location Name | string | Location Name |

{% tabs %}
{% tab title="200 Unsetting User Location Success" %}

```
{    message: "즐겨찾기에서 삭제되었습니다." }
```

{% endtab %}

{% tab title="404 Not Authorized" %}

```
{    message: "로그인이 되어있지 않습니다." }
```

{% endtab %}
{% endtabs %}

## Access Token Request

<mark style="color:blue;">`GET`</mark> `http://munjiout/accesstokenrequest`

User Access Token Verify

#### Headers

| Name           | Type   | Description          |
| -------------- | ------ | -------------------- |
| Authentication | string | Authentication token |

{% tabs %}
{% tab title="200 Verified" %}

```
{    message: "ok" }
```

{% endtab %}

{% tab title="400 Invalid Access Token" %}

```
{    message: "invalid access token" }
```

{% endtab %}
{% endtabs %}
