---
# System prepended metadata

title: Dynamic placement API - App 2

---

# Dynamic placement API - App 2

## PRD
https://docs.google.com/document/d/1Y64vl2NHCwc1Bh3G1fV32QybVC0bmGYe3nFtoDfJqLg



## Endpoint 
> GET /v1/me/foods/v1/food-home?city_id=1
#### Success response with status code `200`
#### Json response
```json=
[
    {
        "api": "v1/me/foods/restaurants/restaurant-offers",
        "auto_scroll": true,
        "default_page_size": 1000,
        "serial_no": 1,
        "type": "app_card"
    },
    {
        "api": "v1/foods/v2/collections",
        "auto_scroll": false,
        "serial_no": 2,
        "type": "collection_name_list"
    },
    {
        "api": "v1/foods/v4/collections/274d5408-b4a8-4123-8fed-f5520e3df934",
        "auto_scroll": false,
        "banner": "https://food-m.p-stageenv.xyz/food/col_cover_Pizza%20Delicious.png",
        "collection_id": "274d5408-b4a8-4123-8fed-f5520e3df934",
        "default_page_size": 10,
        "icon": "",
        "least_needed_count": 5,
        "name": {
            "bn": "",
            "en": "Pizza Delicious",
            "ne": ""
        },
        "row_count": 1,
        "see_all": {
            "text": {
                "bn": "",
                "en": "see all",
                "ne": ""
            }
        },
        "serial_no": 3,
        "type": "collection_view"
    },
    {
        "api": "",
        "serial_no": 4,
        "type": "tile_type"
    },
    {
        "api": "v1/me/foods/v3/orders/reorder-list",
        "auto_scroll": false,
        "name": {
            "bn": "Order Again",
            "en": "Order Again",
            "ne": "Order Again"
        },
        "serial_no": 5,
        "type": "order_again"
    },
    {
        "api": "v1/me/foods/restaurants/favorites",
        "auto_scroll": false,
        "default_page_size": 10,
        "icon": "",
        "least_needed_count": 1,
        "name": {
            "bn": "",
            "en": "Favourite Restaurant",
            "ne": ""
        },
        "row_count": 1,
        "see_all": {
            "text": {
                "bn": "",
                "en": "see all",
                "ne": ""
            }
        },
        "serial_no": 6,
        "type": "favourite_view"
    },
    {
        "api": "v1/foods/v4/collections/ab02fefb-707a-47de-bd6c-5481fcbe6b1d",
        "auto_scroll": true,
        "banner": "",
        "collection_id": "ab02fefb-707a-47de-bd6c-5481fcbe6b1d",
        "default_page_size": 10,
        "icon": "https://food-m.p-stageenv.xyz/food/icon_featured-s-badge@2x.png",
        "least_needed_count": 5,
        "name": {
            "bn": "",
            "en": "Featured",
            "ne": ""
        },
        "row_count": 2,
        "see_all": {
            "text": {
                "bn": "",
                "en": "see all",
                "ne": ""
            }
        },
        "serial_no": 7,
        "type": "collection_view"
    }
]
```

#### Failed response with status code `400`
#### Json response
```json=
{
    "error": "failed to fetch home placement!",
}
```

#### Failed response with status code `404`
#### Json response
```json=
{
    "error": "home page placement not found!",
}
```