POST API/Common/Review?action={action}

Manage Review Action : Get/Add/Delete/Like/UnLike/GetAll

Request Information

URI Parameters

NameDescriptionTypeAdditional information
action

Action : Get: Get reviews for the Products, Add: Add reviews to the Products, Delete: ReviewId is the required parameter to delete review for the product, Like: Update likes for the given reviews, Unlike:Update unlikes for the given reviews, GetAll: ReviewId=0 is required parameter to get all reviews for the product

string

Required

Body Parameters

Review Entity

Review
NameDescriptionTypeAdditional information
ReviewId

integer

None.

Description

string

None.

Rating

integer

None.

ReviewType

string

None.

ReviewTypeId

integer

None.

LoginId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "reviewId": 1,
  "description": "sample string 1",
  "rating": 2,
  "reviewType": "sample string 3",
  "reviewTypeId": 4,
  "loginId": "sample string 5"
}

application/xml, text/xml

Sample:
<Review xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BrownCow.Customer.EntityLayer">
  <Description>sample string 1</Description>
  <LoginId>sample string 5</LoginId>
  <Rating>2</Rating>
  <ReviewId>1</ReviewId>
  <ReviewType>sample string 3</ReviewType>
  <ReviewTypeId>4</ReviewTypeId>
</Review>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.