POST api/shops/postreview

Request Information

URI Parameters

None.

Body Parameters

Collection of ShopReviewPost
NameDescriptionTypeAdditional information
Id

integer

None.

ShopID

integer

None.

BookingID

integer

None.

ReviewerName

string

None.

ReviewerEmailID

string

None.

ReviewerComments

string

None.

ReviewerRating

decimal number

None.

RatingOnSpotMech

decimal number

None.

DateOfReview

date

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "ShopID": 1,
    "BookingID": 1,
    "ReviewerName": "sample string 1",
    "ReviewerEmailID": "sample string 2",
    "ReviewerComments": "sample string 3",
    "ReviewerRating": 1.0,
    "RatingOnSpotMech": 1.0,
    "DateOfReview": "2024-11-21T07:20:01.1485349+00:00"
  },
  {
    "Id": 1,
    "ShopID": 1,
    "BookingID": 1,
    "ReviewerName": "sample string 1",
    "ReviewerEmailID": "sample string 2",
    "ReviewerComments": "sample string 3",
    "ReviewerRating": 1.0,
    "RatingOnSpotMech": 1.0,
    "DateOfReview": "2024-11-21T07:20:01.1485349+00:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfShopReviewPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PostLibrary.Shop">
  <ShopReviewPost>
    <BookingID>1</BookingID>
    <DateOfReview>2024-11-21T07:20:01.1485349+00:00</DateOfReview>
    <Id>1</Id>
    <RatingOnSpotMech>1</RatingOnSpotMech>
    <ReviewerComments>sample string 3</ReviewerComments>
    <ReviewerEmailID>sample string 2</ReviewerEmailID>
    <ReviewerName>sample string 1</ReviewerName>
    <ReviewerRating>1</ReviewerRating>
    <ShopID>1</ShopID>
  </ShopReviewPost>
  <ShopReviewPost>
    <BookingID>1</BookingID>
    <DateOfReview>2024-11-21T07:20:01.1485349+00:00</DateOfReview>
    <Id>1</Id>
    <RatingOnSpotMech>1</RatingOnSpotMech>
    <ReviewerComments>sample string 3</ReviewerComments>
    <ReviewerEmailID>sample string 2</ReviewerEmailID>
    <ReviewerName>sample string 1</ReviewerName>
    <ReviewerRating>1</ReviewerRating>
    <ShopID>1</ShopID>
  </ShopReviewPost>
</ArrayOfShopReviewPost>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.