GET api/product/{id}?relationId={relationId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | string |
Required |
|
| relationId | integer |
Default value is -1 |
Body Parameters
None.
Response Information
Resource Description
ProductDetailItem| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | string |
None. |
|
| Enabled | boolean |
None. |
|
| Model | string |
None. |
|
| Brand | string |
None. |
|
| Prices | Collection of PriceRule |
None. |
|
| Type | string |
None. |
|
| ImageURL | string |
None. |
|
| BrandImageURL | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ID": "sample string 1",
"Enabled": true,
"Model": "sample string 3",
"Brand": "sample string 4",
"Prices": [
{
"price": 1.1,
"id_grade": 2
},
{
"price": 1.1,
"id_grade": 2
}
],
"Type": "sample string 5",
"ImageURL": "sample string 6",
"BrandImageURL": "sample string 7"
}
application/xml, text/xml
Sample:
<ProductDetailItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EcoWaveWebApiBLL.Models">
<Brand>sample string 4</Brand>
<BrandImageURL>sample string 7</BrandImageURL>
<Enabled>true</Enabled>
<ID>sample string 1</ID>
<ImageURL>sample string 6</ImageURL>
<Model>sample string 3</Model>
<Prices>
<PriceRule>
<id_grade>2</id_grade>
<price>1.1</price>
</PriceRule>
<PriceRule>
<id_grade>2</id_grade>
<price>1.1</price>
</PriceRule>
</Prices>
</ProductDetailItem>