API for Main Category
{
"success": true,
"data": [
{
"type": "category",
"data": [
{
"id": 1,
"name": "Man",
"image": "URL"
},
{
"id": 2,
"name": "Woman",
"image": "URL"
},
{
"id": 3,
"name": "Electronics",
"image": "URL"
}
]
}
]
}
If this type of data comes from API that will fill data like this
------------------------------------------------------------------------------------------
API for Cub Category
{
"success": true,
"data": [
{
"type": "subcategory",
"title": "",
"data": [
{
"id": 1,
"name": "Man Wear",
"image": "URL"
},
{
"id": 2,
"name": "Shoes",
"image": "URL"
},
{
"id": 3,
"name": "Watches",
"image": "URL"
}
]
},
{
"type": "product",
"title": "POPULAR IN MAN",
"data": [
{
"id": 1,
"name": "Ecko Unltd",
"image": "URL",
"description": "Men White & Red Printed Round Neck T-shirt",
"price": "12.00",
"old_price":"15.00",
"discount":"10",
"is_favorite": true
},
{
"id": 2,
"name": "Ecko Unltd",
"image": "URL",
"description": "Men White & Red Printed Round Neck T-shirt",
"price": "12.00",
"old_price":"15.00",
"discount":"10",
"is_favorite": false
},
{
"id": 3,
"name": "Ecko Unltd",
"image": "URL",
"description": "Men White & Red Printed Round Neck T-shirt",
"price": "12.00",
"old_price":"15.00",
"discount":"10",
"is_favorite": false
}
]
}
]
}
If this type of data comes from API that will fill data like this
------------------------------------------------------------------------------------------------------
API for Inner Sub category - (type 1)
{
"success": true,
"data": [
{
"type": "innersubcategory",
"title": "SHOP BY CATEGORY",
"data": [
{
"id": 1,
"name": "Sport",
"image": "URL"
},
{
"id": 2,
"name": "Sneakers",
"image": "URL"
},
{
"id": 3,
"name": "Casual",
"image": "URL"
}
]
},
{
"type": "brands",
"title": "SHOP BY TOP BRANDS",
"data": [
{
"id": 1,
"name": "Nike",
"image": "URL"
},
{
"id": 2,
"name": "Adidas",
"image": "URL"
},
{
"id": 3,
"name": "Puma",
"image": "URL"
}
]
},
{
"type": "product",
"title": "POPULAR IN SHOES",
"data": [
{
"id": 1,
"name": "Nike",
"image": "URL",
"description": "Grey Sneakers",
"price": "12.00",
"old_price":"15.00",
"discount":"10",
"is_favorite": true
},
{
"id": 2,
"name": "Nike",
"image": "URL",
"description": "Grey Sneakers",
"price": "12.00",
"old_price":"15.00",
"discount":"10",
"is_favorite": false
},
{
"id": 3,
"name": "Nike",
"image": "URL",
"description": "Grey Sneakers",
"price": "12.00",
"old_price":"15.00",
"discount":"10",
"is_favorite": false
}
]
}
]
}
If this type of data comes from API that will fill data like this
--------------------------------------------------------------------------------
API for Inner sub category - (type 2) API same but data was diff
{
"success": true,
"data": [
{
"type": "brands",
"title": "SHOP BY TOP BRANDS",
"data": [
{
"id": 1,
"name": "Apple",
"image": "URL"
},
{
"id": 2,
"name": "Lenovo",
"image": "URL"
},
{
"id": 3,
"name": "Dell",
"image": "URL"
}
]
},
{
"type": "product",
"title": "POPULAR IN LAPTOP",
"data": [
{
"id": 1,
"name": "Apple",
"image": "URL",
"description": "Apple Laptop",
"price": "12.00",
"old_price":"15.00",
"discount":"10",
"is_favorite": true
},
{
"id": 2,
"name": "Samsung",
"image": "URL",
"description": "Samsung Laptop",
"price": "12.00",
"old_price":"15.00",
"discount":"10",
"is_favorite": false
},
{
"id": 3,
"name": "Dell",
"image": "URL",
"description": "Dell Laptop",
"price": "12.00",
"old_price":"15.00",
"discount":"10",
"is_favorite": false
}
]
}
]
}
If this type of data comes from API that will fill data like this
--------------------------------------------------------------------------------------
API for Inner sub category - (type 3) API same but data was diff
{
"success": true,
"data": [
{
"type": "expandsubcategory",
"title": "",
"data": [
{
"name": "Home Appliances",
"id": 1,
"image": "URL",
"data": [
{
"id": 11,
"name": "Air Conditionr",
"image": "URL"
},
{
"id": 12,
"name": "TV",
"image": "URL"
},
{
"id": 13,
"name": "Fans",
"image": "URL"
}
]
},
{
"id": 2,
"name": "Kitchen Appliances",
"image": "URL",
"data": [
{
"id": 21,
"name": "Air Fryers",
"image": "URL"
},
{
"id": 22,
"name": "Coffee Macker",
"image": "URL"
},
{
"id": 23,
"name": "Microven",
"image": "URL"
}
]
},
{
"id": 3,
"name": "Furniture",
"image": "URL",
"data": [
{
"id": 31,
"name": "Sofa",
"image": "URL"
},
{
"id": 32,
"name": "Chair",
"image": "URL"
},
{
"id": 33,
"name": "Dining Table",
"image": "URL"
}
]
}
]
},
{
"type": "brands",
"title": "SHOP BY TOP BRANDS",
"data": [
{
"id": 1,
"name": "LG",
"image": "URL"
},
{
"id": 2,
"name": "Penasonic",
"image": "URL"
},
{
"id": 3,
"name": "OGeneral",
"image": "URL"
}
]
},
{
"type": "product",
"title": "POPULAR IN SHOES",
"data": [
{
"id": 1,
"name": "TV",
"image": "URL",
"description": "Black TV",
"price": "12.00",
"old_price": "15.00",
"discount": "10",
"is_favorite": true
},
{
"id": 2,
"name": "Panasonic",
"image": "URL",
"description": "Washing Machine",
"price": "12.00",
"old_price": "15.00",
"discount": "10",
"is_favorite": false
},
{
"id": 3,
"name": "OGeneral",
"image": "URL",
"description": "O-General Ac",
"price": "12.00",
"old_price": "15.00",
"discount": "10",
"is_favorite": false
}
]
}
]
}
If this type of data comes from API that will fill data like this
“Category”
“Subcategory”
“Innersubcategory”
“Expandsubcategory”
“Brand”
“Product”
From this types designs will be change for diff categories