POST api/Review

Request Information

URI Parameters

None.

Body Parameters

ReviewModel
NameDescriptionTypeAdditional information
Comment

string

None.

Created

date

None.

ReviewerName

string

None.

Rating

integer

None.

SalonId

integer

None.

StaffId

integer

None.

ServiceItemId

integer

None.

UserId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Comment": "sample string 1",
  "Created": "2020-11-25T04:38:42.7344698+02:00",
  "ReviewerName": "sample string 3",
  "Rating": 4,
  "SalonId": 1,
  "StaffId": 1,
  "ServiceItemId": 1,
  "UserId": 5
}

text/html

Sample:
{"Comment":"sample string 1","Created":"2020-11-25T04:38:42.7344698+02:00","ReviewerName":"sample string 3","Rating":4,"SalonId":1,"StaffId":1,"ServiceItemId":1,"UserId":5}

application/xml, text/xml

Sample:
<ReviewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Beautly.Api.Models">
  <Comment>sample string 1</Comment>
  <Created>2020-11-25T04:38:42.7344698+02:00</Created>
  <Rating>4</Rating>
  <ReviewerName>sample string 3</ReviewerName>
  <SalonId>1</SalonId>
  <ServiceItemId>1</ServiceItemId>
  <StaffId>1</StaffId>
  <UserId>5</UserId>
</ReviewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ReturnResults
NameDescriptionTypeAdditional information
success

boolean

None.

error

string

None.

message

string

None.

data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "error": "sample string 2",
  "message": "sample string 3",
  "data": {}
}

text/html

Sample:
{"success":true,"error":"sample string 2","message":"sample string 3","data":{}}

application/xml, text/xml

Sample:
<ReturnResults xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Beautly.Api.Models">
  <data />
  <error>sample string 2</error>
  <message>sample string 3</message>
  <success>true</success>
</ReturnResults>