POST api/Service

Request Information

URI Parameters

None.

Body Parameters

ServiceItemModel
NameDescriptionTypeAdditional information
Name

string

None.

Type

string

None.

Price

decimal number

None.

DiscountPrice

decimal number

None.

Duration

string

None.

Description

string

None.

ServiceId

integer

None.

Rating

integer

None.

RatingCount

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Type": "sample string 2",
  "Price": 3.1,
  "DiscountPrice": 4.1,
  "Duration": "sample string 5",
  "Description": "sample string 6",
  "ServiceId": 7,
  "Rating": 8,
  "RatingCount": 9
}

text/html

Sample:
{"Name":"sample string 1","Type":"sample string 2","Price":3.1,"DiscountPrice":4.1,"Duration":"sample string 5","Description":"sample string 6","ServiceId":7,"Rating":8,"RatingCount":9}

application/xml, text/xml

Sample:
<ServiceItemModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Beautly.Api.Models">
  <Description>sample string 6</Description>
  <DiscountPrice>4.1</DiscountPrice>
  <Duration>sample string 5</Duration>
  <Name>sample string 1</Name>
  <Price>3.1</Price>
  <Rating>8</Rating>
  <RatingCount>9</RatingCount>
  <ServiceId>7</ServiceId>
  <Type>sample string 2</Type>
</ServiceItemModel>

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>