POST api/product/getrelatedrootproductforarticledetail?articleId={articleId}&top={top}&amp={amp}

Lấy sản phẩm liên quan trang bài biết chi tiết

Request Information

URI Parameters

NameDescriptionTypeAdditional information
articleId

Tin bài Id

integer

Required

top

integer

Required

amp

integer

Default value is 0

Body Parameters

Danh sách tù khóa, tags ...

Collection of string

Request Formats

application/json, text/json

Sample:
[
  "sample string 1",
  "sample string 2"
]

application/xml, text/xml

Sample:
<ArrayOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <string>sample string 1</string>
  <string>sample string 2</string>
</ArrayOfstring>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of RecommendProductModel
NameDescriptionTypeAdditional information
ProductId

integer

None.

ProductName

string

None.

Image

string

None.

Price

integer

None.

Url

string

None.

MerchantCount

integer

None.

MerchantId

integer

None.

MerchantDomain

string

None.

MerchantLogoPath

string

None.

UrlNoDomain

string

None.

MerchantStore

string

None.

PriceString

string

None.

ImageWidth

integer

None.

ImageHeight

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ProductId": "1",
    "ProductName": "sample string 2",
    "Image": "sample string 3",
    "Price": 4,
    "Url": "sample string 5",
    "MerchantCount": 6,
    "MerchantId": "7",
    "MerchantDomain": "sample string 8",
    "MerchantLogoPath": "sample string 9",
    "UrlNoDomain": "sample string 10",
    "MerchantStore": "sample string 11",
    "PriceString": "sample string 12",
    "ImageWidth": 13,
    "ImageHeight": 14
  },
  {
    "ProductId": "1",
    "ProductName": "sample string 2",
    "Image": "sample string 3",
    "Price": 4,
    "Url": "sample string 5",
    "MerchantCount": 6,
    "MerchantId": "7",
    "MerchantDomain": "sample string 8",
    "MerchantLogoPath": "sample string 9",
    "UrlNoDomain": "sample string 10",
    "MerchantStore": "sample string 11",
    "PriceString": "sample string 12",
    "ImageWidth": 13,
    "ImageHeight": 14
  }
]

application/xml, text/xml

Sample:
<ArrayOfRecommendProductModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WSS.ViewModel">
  <RecommendProductModel>
    <Image>sample string 3</Image>
    <ImageHeight>14</ImageHeight>
    <ImageWidth>13</ImageWidth>
    <MerchantCount>6</MerchantCount>
    <MerchantDomain>sample string 8</MerchantDomain>
    <MerchantId>7</MerchantId>
    <MerchantLogoPath>sample string 9</MerchantLogoPath>
    <MerchantStore>sample string 11</MerchantStore>
    <Price>4</Price>
    <PriceString>sample string 12</PriceString>
    <ProductId>1</ProductId>
    <ProductName>sample string 2</ProductName>
    <Url>sample string 5</Url>
    <UrlNoDomain>sample string 10</UrlNoDomain>
  </RecommendProductModel>
  <RecommendProductModel>
    <Image>sample string 3</Image>
    <ImageHeight>14</ImageHeight>
    <ImageWidth>13</ImageWidth>
    <MerchantCount>6</MerchantCount>
    <MerchantDomain>sample string 8</MerchantDomain>
    <MerchantId>7</MerchantId>
    <MerchantLogoPath>sample string 9</MerchantLogoPath>
    <MerchantStore>sample string 11</MerchantStore>
    <Price>4</Price>
    <PriceString>sample string 12</PriceString>
    <ProductId>1</ProductId>
    <ProductName>sample string 2</ProductName>
    <Url>sample string 5</Url>
    <UrlNoDomain>sample string 10</UrlNoDomain>
  </RecommendProductModel>
</ArrayOfRecommendProductModel>