POST api/ProductColor/AddProductColor

Request Information

URI Parameters

None.

Body Parameters

ProductColor
NameDescriptionTypeAdditional information
Id

integer

None.

ProductId

integer

None.

ColorId

integer

None.

Color

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ProductId": 2,
  "ColorId": 3,
  "Color": "sample string 4"
}

application/xml, text/xml

Sample:
<ProductColor xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EcommerceWebApi.Models">
  <Color>sample string 4</Color>
  <ColorId>3</ColorId>
  <Id>1</Id>
  <ProductId>2</ProductId>
</ProductColor>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.