POST api/ProductPhoto/AddProduct

Request Information

URI Parameters

None.

Body Parameters

ProductPhotoModel
NameDescriptionTypeAdditional information
ImageId

globally unique identifier

None.

OrgImage

Collection of byte

None.

ProductId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "ImageId": "69caa0a1-0eb2-49e8-bd2f-a06f8d1b2f25",
  "OrgImage": "QEA=",
  "ProductId": "34730714-0a72-4827-8ee7-b1fe6c5d44b2"
}

application/xml, text/xml

Sample:
<ProductPhotoModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IRetail.Helpers">
  <ImageId>69caa0a1-0eb2-49e8-bd2f-a06f8d1b2f25</ImageId>
  <OrgImage>QEA=</OrgImage>
  <ProductId>34730714-0a72-4827-8ee7-b1fe6c5d44b2</ProductId>
</ProductPhotoModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ProductPhotoModel'.

Response Information

Resource Description

ResponseModel
NameDescriptionTypeAdditional information
IsSucces

boolean

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "IsSucces": true,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<ResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IRetail.Helpers">
  <IsSucces>true</IsSucces>
  <Message>sample string 2</Message>
</ResponseModel>