POST api/pod/product/EditProduct

Request Information

URI Parameters

None.

Body Parameters

EditProductBindingModel
NameDescriptionTypeAdditional information
EntityId

integer

Required

ChangePreview

boolean

Required

AvailableCount

decimal number

None.

Name

string

Required

Price

decimal number

Required

Discount

decimal number

Required

CanComment

boolean

None.

CanLike

boolean

None.

IsEnabled

boolean

None.

Description

string

None.

Result

string

None.

HasErrors

boolean

None.

Message

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "EntityId": 1,
  "ChangePreview": true,
  "AvailableCount": 3.0,
  "Name": "sample string 4",
  "Price": 5.0,
  "Discount": 6.0,
  "CanComment": true,
  "CanLike": true,
  "IsEnabled": true,
  "Description": "sample string 10",
  "Result": "sample string 11",
  "HasErrors": false,
  "Message": []
}

application/xml, text/xml

Sample:
<EditProductBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Barg.WebAPI.Models">
  <Message xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
  <Result>sample string 11</Result>
  <AvailableCount>3</AvailableCount>
  <CanComment>true</CanComment>
  <CanLike>true</CanLike>
  <Description>sample string 10</Description>
  <Discount>6</Discount>
  <IsEnabled>true</IsEnabled>
  <Name>sample string 4</Name>
  <Price>5</Price>
  <ChangePreview>true</ChangePreview>
  <EntityId>1</EntityId>
</EditProductBindingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BaseViewModel
NameDescriptionTypeAdditional information
Result

string

None.

HasErrors

boolean

None.

Message

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": "sample string 1",
  "HasErrors": false,
  "Message": []
}

application/xml, text/xml

Sample:
<BaseViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Barg.WebAPI.Models">
  <Message xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
  <Result>sample string 1</Result>
</BaseViewModel>