[GET] product highlight - namnhuit/api GitHub Wiki

method: GET

url: /product/highlight

response:

{
    "name": "productName",
    "short_description": "short description content",
    "price": {
      "origin": 100000.00,
      "sale": {
        "start_date": "2008-11-11 13:23:44",
        "end_date": "2008-11-11 13:23:44",
        "percent": 50.00,
        "price": 50000.00,
        "desc": "sale description"
      }
    },
    "in_stock": true,
    "is_limitation": true,
    "is_going_out_stock": true,
    "variant": {
      "name": "color",
      "products": [
        {
          "product_id": "product_id1",
          "isPrimary": true,
          "images": [
            "photo_url1"
          ],
          "type": "green"
        },
        {
          "product_id": "product_id2",
          "isPrimary": false,
          "images": [
            "photo_url1"
          ],
          "type": "red"
        },
        {
          "product_id": "product_id3",
          "isPrimary": false,
          "images": [
            "photo_url1"
          ],
          "type": "yellow"
        }
      ]
    },
    "display_product_id": "display_product_id1"
  }