# common recipe

## all recipe

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

#### Request Body

| Name | Type   | Description |
| ---- | ------ | ----------- |
| page | number | 5           |

{% tabs %}
{% tab title="200 Cake successfully retrieved." %}

```
{
    recipes: [{
        id: 1,
        title: "제목",
        description: "설명",
        main_image: "이미지 경로",
        foods: [{name: "재료", capacity: "갯수"}, ...],
        steps: [{image: "이미지 경로",
            recipe: "조리법"},
            {image: "이미지 경로",
            recipe: "조리법"}]}, ...]
    message: "load success",
    success: true,
}
```

{% endtab %}

{% tab title="400 Could not find a cake matching this query." %}

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

{% endtab %}
{% endtabs %}

## recipes search by food

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

#### Request Body

| Name | Type  | Description                          |
| ---- | ----- | ------------------------------------ |
| food | array | {food: \[{name: "부추"}, {name: "당"}]} |

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

```
{
    recipes: {
        id: 1,
        title: "제목",
        description: "설명",
        main_image: "이미지 경로",
        foods: [{name: "재료", capacity: "갯수"}, ...],
        steps: [{image: "이미지 경로",
            recipe: "조리법"},
            {image: "이미지 경로",
            recipe: "조리법"}]
    }
    message: "load success",
    success: true
}
```

{% endtab %}

{% tab title="400 " %}

```
{
    message: "load fail"
    error: error
}
```

{% endtab %}
{% endtabs %}

## recipe detail

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

#### Path Parameters

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

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

```
{
    recipes: {
        id: 1,
        title: "제목",
        description: "설명",
        main_image: "이미지 경로",
        foods: [{name: "재료", capacity: "갯수"}, ...],
        steps: [{image: "이미지 경로",
            recipe: "조리법"},
            {image: "이미지 경로",
            recipe: "조리법"}]
    }
    message: "load success",
    success: true
}
```

{% endtab %}

{% tab title="400 " %}

```
{
    message: "load fail",
    success: false,    
    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/untitled.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.
