POST api/ProductPhoto
Request Information
URI Parameters
None.
Body Parameters
ProductPhotoModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ImageId | globally unique identifier |
None. |
|
| OrgImage | Collection of byte |
None. |
|
| ProductId | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"ImageId": "185a4f1f-6d08-4b03-94e9-3ae270b2b0b5",
"OrgImage": "QEA=",
"ProductId": "42676d59-1575-4308-9884-014a0d9c3f07"
}
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>185a4f1f-6d08-4b03-94e9-3ae270b2b0b5</ImageId> <OrgImage>QEA=</OrgImage> <ProductId>42676d59-1575-4308-9884-014a0d9c3f07</ProductId> </ProductPhotoModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ResponseModel| Name | Description | Type | Additional 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>