GET api/product/getrootproductdetail?productId={productId}&={amp}
Lấy thông tin sản phẩm gốc
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
productId |
Sản phẩm Id |
integer |
Required |
amp | integer |
Default value is 0 |
Body Parameters
None.
Response Information
Resource Description
RootProductDetailModelName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Name | string |
None. |
|
NumProduct | integer |
None. |
|
Gallery | Collection of string |
None. |
|
AvgVote | decimal number |
None. |
|
VoteCount | integer |
None. |
|
CatId | integer |
None. |
|
DetailUrl | string |
None. |
|
UrlNoDomain | string |
None. |
|
ShortDescription | string |
None. |
|
Description | string |
None. |
|
YoutubeVideoUrl | string |
None. |
|
Price | integer |
None. |
|
GalleryProductImage | Collection of ProductImage |
None. |
Response Formats
application/json, text/json
Sample:
{ "Id": 1, "Name": "sample string 2", "NumProduct": 3, "Gallery": [ "sample string 1", "sample string 2" ], "AvgVote": 4.1, "VoteCount": 5, "CatId": 6, "DetailUrl": "sample string 7", "UrlNoDomain": "sample string 8", "ShortDescription": "sample string 9", "Description": "sample string 10", "YoutubeVideoUrl": "sample string 11", "Price": 12, "GalleryProductImage": [ { "ImageName": "sample string 1", "ImageUrl": "sample string 2", "ImageWidth": 3, "ImageHeight": 4 }, { "ImageName": "sample string 1", "ImageUrl": "sample string 2", "ImageWidth": 3, "ImageHeight": 4 } ] }
application/xml, text/xml
Sample:
<RootProductDetailModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WSS.ViewModel"> <AvgVote>4.1</AvgVote> <CatId>6</CatId> <Description>sample string 10</Description> <DetailUrl>sample string 7</DetailUrl> <Gallery xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </Gallery> <GalleryProductImage xmlns:d2p1="http://schemas.datacontract.org/2004/07/WSS.DomainObjects"> <d2p1:ProductImage> <d2p1:ImageHeight>4</d2p1:ImageHeight> <d2p1:ImageName>sample string 1</d2p1:ImageName> <d2p1:ImageUrl>sample string 2</d2p1:ImageUrl> <d2p1:ImageWidth>3</d2p1:ImageWidth> </d2p1:ProductImage> <d2p1:ProductImage> <d2p1:ImageHeight>4</d2p1:ImageHeight> <d2p1:ImageName>sample string 1</d2p1:ImageName> <d2p1:ImageUrl>sample string 2</d2p1:ImageUrl> <d2p1:ImageWidth>3</d2p1:ImageWidth> </d2p1:ProductImage> </GalleryProductImage> <Id>1</Id> <Name>sample string 2</Name> <NumProduct>3</NumProduct> <Price>12</Price> <ShortDescription>sample string 9</ShortDescription> <UrlNoDomain>sample string 8</UrlNoDomain> <VoteCount>5</VoteCount> <YoutubeVideoUrl>sample string 11</YoutubeVideoUrl> </RootProductDetailModel>