Data Structure
Demos
Grocery 2

Grocery 2 - Data Structure

End point: /api/grocery-2/category-navigation
Used in: Grocery-2, Grocery2SideNav

Output:

[
    {
        icon: "Carrot",
        title: "Vegetables",
        href: "/product/search/vegetables",
    },
    {
        icon: "Apple",
        title: "Fruits & Vegetables",
        href: "/product/search/Fruits & Vegetables",
        child: [
            {
                title: "Fresh Frutes",
                href: "/product/search/Fresh Frutes",
                child: [
                    {
                        title: "Pears, apples, quinces",
                        href: "/product/search/Pears, apples, quinces"
                    },
                    ...
                ],
            }
        ],
    },
    ...
]

End point: /api/grocery-2/main-carousel
Used in: Grocery-2, Section1

Output:

[
    {
        id: 1,
        title: "Get Your Grocery Within 40 Minutes",
        imgUrl: "/assets/images/products/garlic.png",
        description: "...",
        playStoreLink: "/",
        appStoreLink: "/",
    },
    ...
]

End point: /api/grocery-2/services
Used in: Grocery-2, Section2

Output:

[
    {
        id: "ee272e30-0309-4e8a-966c-f63410c58289",
        icon: "Truck",
        title: "Fast Delivery",
        description: "Start from $10",
    },
    ...
]

End point: /api/grocery-2/categories
Used in: Grocery-2, Section3

Output:

[
    {
        id: "3a9c3d66-f3e3-413f-ae98-b50086caecd9",
        name: "Fruits & Vegatables",
        icon: null,
        image: "/assets/images/icons/healthy-food.svg",
        slug: "fruits-and-vegatables",
        parent: [],
        description: "Upto 60% off",
    },
    ...
]

End point: /api/grocery-2/featured-products
Used in: Grocery-2, ProductCarousel - Section4

Output:

[
    {
        id: "8ac53dd8-6418-454f-bbb5-29f0b26ac5a5",
        slug: "nikecourt-zoom-vapor-cage",
        shop: {
            id: "baa3a02b-42da-40c0-852b-3aa292b70704",
            slug: "anytime-buys",
            user: {
                id: "e0d8be78-c530-4f1a-a2df-d082ba2db274",
                email: "Daisy.McLaughlin80@yahoo.com",
                phone: "1-462-772-4274 x931",
                avatar: "...",
                password: "nAGr0Rkf8CLP4Sv",
                dateOfBirth: "1958-06-07T17:14:57.585Z",
                verified: true,
                name: { firstName: "Llewellyn", lastName: "Schmitt" },
            },
            email: "Vida.Simonis@hotmail.com",
            name: "Anytime Buys",
            phone: "(613) 343-9004",
            address: "845 N. Stonybrook Ave. Tonawanda, NY 14210, Denmark",
            verified: false,
            coverPicture: "/assets/images/banners/banner-6.png",
            profilePicture: "/assets/images/faces/propic(5).png",
            socialLinks: {
                facebook: null,
                youtube: null,
                twitter: null,
                instagram: null,
            },
        },
        title: "NikeCourt Zoom Vapor Cage",
        brand: null,
        price: 250,
        size: null,
        colors: [],
        discount: 25,
        thumbnail: "flash-1.png",
        images: ["flash-1.png", "flash-1.png"],
        categories: [],
        status: null,
        reviews: [],
    },
    ...
]

End point: /api/grocery-2/best-sell-products
Used in: Grocery-1, ProductCarousel - Section5

Output:

[
    {
        id: "8ac53dd8-6418-454f-bbb5-29f0b26ac5a5",
        slug: "nikecourt-zoom-vapor-cage",
        shop: {
            id: "baa3a02b-42da-40c0-852b-3aa292b70704",
            slug: "anytime-buys",
            user: {
                id: "e0d8be78-c530-4f1a-a2df-d082ba2db274",
                email: "Daisy.McLaughlin80@yahoo.com",
                phone: "1-462-772-4274 x931",
                avatar: "...",
                password: "nAGr0Rkf8CLP4Sv",
                dateOfBirth: "1958-06-07T17:14:57.585Z",
                verified: true,
                name: { firstName: "Llewellyn", lastName: "Schmitt" },
            },
            email: "Vida.Simonis@hotmail.com",
            name: "Anytime Buys",
            phone: "(613) 343-9004",
            address: "845 N. Stonybrook Ave. Tonawanda, NY 14210, Denmark",
            verified: false,
            coverPicture: "/assets/images/banners/banner-6.png",
            profilePicture: "/assets/images/faces/propic(5).png",
            socialLinks: {
                facebook: null,
                youtube: null,
                twitter: null,
                instagram: null,
            },
        },
        title: "NikeCourt Zoom Vapor Cage",
        brand: null,
        price: 250,
        size: null,
        colors: [],
        discount: 25,
        thumbnail: "flash-1.png",
        images: ["flash-1.png", "flash-1.png"],
        categories: [],
        status: null,
        reviews: [],
    },
    ...
]

End point: /api/grocery-2/discount-card-list
Used in: Grocery-2, Section6

Output:

[
    {
        id: 1,
        title: "25% Special Off Today Only for Vegetables",
        subtitle: "Till 10 Sept, 2021",
        imgUrl: "...",
        shopUrl: "/",
        bgColor: "#F6FFE5",
    }
    ...
]

End point: /api/grocery-2/home-essentials-products
Used in: Grocery-1, ProductCarousel - Section7

Output:

[
    {
        id: "8ac53dd8-6418-454f-bbb5-29f0b26ac5a5",
        slug: "nikecourt-zoom-vapor-cage",
        shop: {
            id: "baa3a02b-42da-40c0-852b-3aa292b70704",
            slug: "anytime-buys",
            user: {
                id: "e0d8be78-c530-4f1a-a2df-d082ba2db274",
                email: "Daisy.McLaughlin80@yahoo.com",
                phone: "1-462-772-4274 x931",
                avatar: "...",
                password: "nAGr0Rkf8CLP4Sv",
                dateOfBirth: "1958-06-07T17:14:57.585Z",
                verified: true,
                name: { firstName: "Llewellyn", lastName: "Schmitt" },
            },
            email: "Vida.Simonis@hotmail.com",
            name: "Anytime Buys",
            phone: "(613) 343-9004",
            address: "845 N. Stonybrook Ave. Tonawanda, NY 14210, Denmark",
            verified: false,
            coverPicture: "/assets/images/banners/banner-6.png",
            profilePicture: "/assets/images/faces/propic(5).png",
            socialLinks: {
                facebook: null,
                youtube: null,
                twitter: null,
                instagram: null,
            },
        },
        title: "NikeCourt Zoom Vapor Cage",
        brand: null,
        price: 250,
        size: null,
        colors: [],
        discount: 25,
        thumbnail: "flash-1.png",
        images: ["flash-1.png", "flash-1.png"],
        categories: [],
        status: null,
        reviews: [],
    },
    ...
]

End point: /api/grocery-2/more-products
Used in: Grocery-1, ProductCarousel - Section8

Output:

[
    {
        id: "8ac53dd8-6418-454f-bbb5-29f0b26ac5a5",
        slug: "nikecourt-zoom-vapor-cage",
        shop: {
            id: "baa3a02b-42da-40c0-852b-3aa292b70704",
            slug: "anytime-buys",
            user: {
                id: "e0d8be78-c530-4f1a-a2df-d082ba2db274",
                email: "Daisy.McLaughlin80@yahoo.com",
                phone: "1-462-772-4274 x931",
                avatar: "...",
                password: "nAGr0Rkf8CLP4Sv",
                dateOfBirth: "1958-06-07T17:14:57.585Z",
                verified: true,
                name: { firstName: "Llewellyn", lastName: "Schmitt" },
            },
            email: "Vida.Simonis@hotmail.com",
            name: "Anytime Buys",
            phone: "(613) 343-9004",
            address: "845 N. Stonybrook Ave. Tonawanda, NY 14210, Denmark",
            verified: false,
            coverPicture: "/assets/images/banners/banner-6.png",
            profilePicture: "/assets/images/faces/propic(5).png",
            socialLinks: {
                facebook: null,
                youtube: null,
                twitter: null,
                instagram: null,
            },
        },
        title: "NikeCourt Zoom Vapor Cage",
        brand: null,
        price: 250,
        size: null,
        colors: [],
        discount: 25,
        thumbnail: "flash-1.png",
        images: ["flash-1.png", "flash-1.png"],
        categories: [],
        status: null,
        reviews: [],
    },
    ...
]

End point: /api/grocery-2/testimonial-list
Used in: Grocery-1, Section9

Output:

[
    {
        rating: 5,
        comment: '...',
        id: "aa95e3fd-c170-431a-b9cd-abaac45a048f",
        user: {
            name: "Jonathon Doe",
            avatar: "/assets/images/faces/7.png"
        },
    },
    ...
]