Professional Documents
Culture Documents
API Explanation
API Explanation
{
"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
------------------------------------------------------------------------------------------
If this type of data comes from API that will fill data like this
------------------------------------------------------------------------------------------------------
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”