POST api/Favorite
Request Information
URI Parameters
None.
Body Parameters
FavoriteModelName | Description | Type | Additional information |
---|---|---|---|
SalonId | integer |
None. |
|
UserId | integer |
None. |
|
Type | string |
None. |
|
StaffId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "SalonId": 1, "UserId": 2, "Type": "sample string 3", "StaffId": 4 }
text/html
Sample:
{"SalonId":1,"UserId":2,"Type":"sample string 3","StaffId":4}
application/xml, text/xml
Sample:
<FavoriteModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Beautly.Api.Models"> <SalonId>1</SalonId> <StaffId>4</StaffId> <Type>sample string 3</Type> <UserId>2</UserId> </FavoriteModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ReturnResultsName | Description | Type | Additional 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>