Skip to content
Nurul Amin Muhit edited this page Dec 19, 2020 · 1 revision

API

Available API endpoints and definition for the request and response formats.

Products

GET /api/products

{
    "status": "success",
    "data": {
        "products": [
            {
                "id": 2169396,
                "name": "Auto Alpha",
                "attributes": [
                    {
                        "name": "Color",
                        "value": "Blue"
                    },
                    {
                        "name": "Color",
                        "value": "Green"
                    },
                    {
                        "name": "Category",
                        "value": "Cars > Hybrids"
                    }
                ]
            },
            {
                "id": 2749899,
                "name": "Auto Delta",
                "attributes": [
                    {
                        "name": "Color",
                        "value": "Red"
                    },
                    {
                        "name": "Category",
                        "value": "Cars > Hybrids"
                    }
                ]
            }
        ],
        "page": 1,
        "totalPages": 1
    }
}

GET /api/products/product

  • params
    • page Page number
    • page_size Limit per page
{
    "status": "success",
    "data": {
        "products": [
            {
                "id": 2169396,
                "name": "Auto Alpha",
                "attributes": [
                    {
                        "name": "Color",
                        "value": "Blue"
                    },
                    {
                        "name": "Color",
                        "value": "Green"
                    },
                    {
                        "name": "Category",
                        "value": "Cars > Hybrids"
                    }
                ]
            },
            {
                "id": 2749899,
                "name": "Auto Delta",
                "attributes": [
                    {
                        "name": "Color",
                        "value": "Red"
                    },
                    {
                        "name": "Category",
                        "value": "Cars > Hybrids"
                    }
                ]
            }
        ],
        "page": 1,
        "totalPages": 5
    }
}
Clone this wiki locally