POST api/Deals/SetDeal
Request Information
URI Parameters
None.
Body Parameters
Deals| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
None. |
|
| Discount | decimal number |
None. |
|
| Price | decimal number |
None. |
|
| Status | boolean |
None. |
|
| Default | boolean |
None. |
|
| Details | Collection of Deal_Detail |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 1",
"Discount": 2.1,
"Price": 3.1,
"Status": true,
"Default": true,
"Details": [
{
"Id": 1,
"DealId": 1,
"ServiceId": 2,
"Price": 3.1
},
{
"Id": 1,
"DealId": 1,
"ServiceId": 2,
"Price": 3.1
}
]
}
application/xml, text/xml
Sample:
<Deals xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models">
<Default>true</Default>
<Details>
<Deal_Detail>
<DealId>1</DealId>
<Id>1</Id>
<Price>3.1</Price>
<ServiceId>2</ServiceId>
</Deal_Detail>
<Deal_Detail>
<DealId>1</DealId>
<Id>1</Id>
<Price>3.1</Price>
<ServiceId>2</ServiceId>
</Deal_Detail>
</Details>
<Discount>2.1</Discount>
<Id>1</Id>
<Name>sample string 1</Name>
<Price>3.1</Price>
<Status>true</Status>
</Deals>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>