POST api/Product/AddProductPhoto

Request Information

URI Parameters

None.

Body Parameters

ProductPhoto
NameDescriptionTypeAdditional information
Id

integer

None.

ProductId

integer

None.

ColorId

integer

None.

Color

string

None.

Photo

string

None.

Request Formats

application/json, text/json

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

application/xml, text/xml

Sample:
<ProductPhoto 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>
  <Photo>sample string 5</Photo>
  <ProductId>2</ProductId>
</ProductPhoto>

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.