GET api/ProductColor/GetProductColorByProductId/{Id}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
Id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of ProductColorName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
ProductId | integer |
None. |
|
ColorId | integer |
None. |
|
Color | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Id": 1, "ProductId": 2, "ColorId": 3, "Color": "sample string 4" }, { "Id": 1, "ProductId": 2, "ColorId": 3, "Color": "sample string 4" } ]
application/xml, text/xml
Sample:
<ArrayOfProductColor xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EcommerceWebApi.Models"> <ProductColor> <Color>sample string 4</Color> <ColorId>3</ColorId> <Id>1</Id> <ProductId>2</ProductId> </ProductColor> <ProductColor> <Color>sample string 4</Color> <ColorId>3</ColorId> <Id>1</Id> <ProductId>2</ProductId> </ProductColor> </ArrayOfProductColor>