POST api/Product/ReviseProduct

Request Information

URI Parameters

None.

Body Parameters

Collection of Revision
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

CreatedDate

date

None.

UserId

integer

None.

ProductId

globally unique identifier

None.

ReviseQuantity

integer

None.

SourceQuantity

integer

None.

TransactionId

globally unique identifier

None.

User

User

None.

Product

Product

None.

Transaction

Transaction

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'IRetailDataLib.User'. Path '[0].User.Role.User'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'IRetailDataLib.User'. Path '[0].User.Role.User'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Граф объекта для типа "System.Collections.Generic.List`1[[IRetailDataLib.Activity, IRetailDataLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]" содержит циклы и не может быть сериализован, если отключено отслеживание ссылок.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Граф объекта для типа "System.Collections.Generic.List`1[[IRetailDataLib.Activity, IRetailDataLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]" содержит циклы и не может быть сериализован, если отключено отслеживание ссылок.

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 'IEnumerable`1'.

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>