# food

## &#x20;food list

<mark style="color:blue;">`GET`</mark> `https://api.eatmeup.me/food/info`

#### Headers

| Name    | Type   | Description            |
| ------- | ------ | ---------------------- |
| cookies | string | token(access, refresh) |

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

```
{
      success: true,
      message: "load success",
      foods: [
      ...Food
      ]
}
```

{% endtab %}

{% tab title="400 " %}

```
{
    success: false,
    message: "load fail",
    error: error
}
```

{% endtab %}
{% endtabs %}

## add food

<mark style="color:green;">`POST`</mark> `https://api.eatmeup.me/food/info`

#### Headers

| Name    | Type   | Description            |
| ------- | ------ | ---------------------- |
| cookies | string | token(access, refresh) |

#### Request Body

| Name        | Type   | Description |
| ----------- | ------ | ----------- |
| food\_name  | string |             |
| food\_image | string |             |
| life        | string |             |
| frez\_type  | string |             |

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

```
{
      success: true,
      message: "post success",
}
```

{% endtab %}

{% tab title="400 " %}

```
{
    success: false,
    message: "post fail"
}
```

{% endtab %}
{% endtabs %}

## modify food type

<mark style="color:orange;">`PUT`</mark> `https://api.eatmeup.me/food/info`

#### Request Body

| Name  | Type  | Description |
| ----- | ----- | ----------- |
| foods | array |             |

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

```
{
      success: true,
      message: "edit success",
}
```

{% endtab %}

{% tab title="400 " %}

```
{
      success: false,
      message: "edit fail",
      error: error,
}
```

{% endtab %}
{% endtabs %}

## modify food content

<mark style="color:orange;">`PUT`</mark> `https://api.eatmeup.me/food/info/:id`

#### Path Parameters

| Name | Type   | Description |
| ---- | ------ | ----------- |
| id   | string |             |

#### Headers

| Name    | Type   | Description            |
| ------- | ------ | ---------------------- |
| cookies | string | token(access, refresh) |

#### Request Body

| Name        | Type   | Description |
| ----------- | ------ | ----------- |
| food\_name  | string |             |
| food\_image | string |             |
|             | string |             |
|             | string |             |

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

```
{
      success: true,
      message: "edit success",
}
```

{% endtab %}

{% tab title="400 " %}

```
{
      success: false,
      message: "edit fail",
      error: error,
}
```

{% endtab %}
{% endtabs %}

## delete food

<mark style="color:red;">`DELETE`</mark> `https://api.eatmeup.me/food/info/:id`

#### Path Parameters

| Name | Type   | Description |
| ---- | ------ | ----------- |
| id   | string |             |

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

```
{
      success: true,
      message: "delete success",
}
```

{% endtab %}

{% tab title="400 " %}

```
{
      success: false,
      message: "delete fail",
      error: error,
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://juy5437.gitbook.io/eatmeup/food.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
