POST api/Inventory/InventoryReview/Create

Request Information

URI Parameters

None.

Body Parameters

InventoryReviewPostViewModel
NameDescriptionTypeAdditional information
ProductID

string

None.

Description

string

None.

Explanation

string

None.

Rating

integer

None.

Request Formats

application/xml, text/xml

Sample:
<InventoryReviewPostViewModel>
  <ProductID>sample string 1</ProductID>
  <Description>sample string 2</Description>
  <Explanation>sample string 3</Explanation>
  <Rating>4</Rating>
</InventoryReviewPostViewModel>

application/json, text/json

Sample:
{
  "ProductID": "sample string 1",
  "Description": "sample string 2",
  "Explanation": "sample string 3",
  "Rating": 4
}

application/x-www-form-urlencoded

Sample:

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

Response Information

Resource Description

IInventoryReview
NameDescriptionTypeAdditional information
ID

integer

None.

InventoryID

integer

None.

RepID

integer

None.

CustomerID

integer

None.

Description

string

None.

Explanation

string

None.

Rating

integer

None.

Status

integer

None.

BackOfficeUserName

string

None.

SortOrder

integer

None.

Response Formats

application/xml, text/xml

Sample:
<InventoryReview>
  <ID>0</ID>
  <InventoryID>0</InventoryID>
  <RepID />
  <CustomerID />
  <Description />
  <Explanation />
  <Rating>0</Rating>
  <Status>0</Status>
  <BackOfficeUserName />
  <SortOrder>0</SortOrder>
  <CreatedBy />
  <DateCreated>01/01/0001 00:00:00</DateCreated>
  <LastModifiedBy />
  <DateLastModified />
</InventoryReview>

application/json, text/json

Sample:
{
  "ID": 0,
  "InventoryID": 0,
  "Rating": 0,
  "Status": 0,
  "SortOrder": 0,
  "DateCreated": "0001-01-01T00:00:00"
}