POST api/CustomerReview

Request Information

URI Parameters

None.

Body Parameters

CustomerReviewModels
NameDescriptionTypeAdditional information
CR_Id

integer

None.

ProductId

integer

Required

CustomerName

string

None.

UserId

integer

None.

CR_Description

string

Required

Max length: 140

CR_Rating

decimal number

Required

CR_DateTime

date

None.

Request Formats

application/json, text/json

Sample:
{
  "CR_Id": 1,
  "ProductId": 2,
  "CustomerName": "sample string 3",
  "UserId": 4,
  "CR_Description": "sample string 5",
  "CR_Rating": 6.0,
  "CR_DateTime": "2019-07-23T15:53:02.2780316+05:30"
}

application/xml, text/xml

Sample:
<CustomerReviewModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
  <CR_DateTime>2019-07-23T15:53:02.2780316+05:30</CR_DateTime>
  <CR_Description>sample string 5</CR_Description>
  <CR_Id>1</CR_Id>
  <CR_Rating>6</CR_Rating>
  <CustomerName>sample string 3</CustomerName>
  <ProductId>2</ProductId>
  <UserId>4</UserId>
</CustomerReviewModels>

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 'CustomerReviewModels'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.