POST api/Sale
Request Information
URI Parameters
None.
Body Parameters
SaleVM| Name | Description | Type | Additional information |
|---|---|---|---|
| CustomerId | integer |
None. |
|
| CustomerName | string |
None. |
|
| Note | string |
None. |
|
| Driver | DriverAviVM |
None. |
|
| DriverList | Collection of DriverAviVM |
None. |
|
| sanfList | Collection of SanfViewModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"CustomerId": 1,
"CustomerName": "sample string 2",
"Note": "sample string 3",
"Driver": {
"DriverId": 1,
"Name": "sample string 2"
},
"DriverList": [
{
"DriverId": 1,
"Name": "sample string 2"
},
{
"DriverId": 1,
"Name": "sample string 2"
}
],
"sanfList": [
{
"SanfId": 1,
"SanfName": "sample string 2",
"Price": 3.1,
"AviQuantity": 4,
"Quantity": 5
},
{
"SanfId": 1,
"SanfName": "sample string 2",
"Price": 3.1,
"AviQuantity": 4,
"Quantity": 5
}
]
}
application/xml, text/xml
Sample:
<SaleVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GatronApi.Models">
<CustomerId>1</CustomerId>
<CustomerName>sample string 2</CustomerName>
<Driver>
<DriverId>1</DriverId>
<Name>sample string 2</Name>
</Driver>
<DriverList>
<DriverAviVM>
<DriverId>1</DriverId>
<Name>sample string 2</Name>
</DriverAviVM>
<DriverAviVM>
<DriverId>1</DriverId>
<Name>sample string 2</Name>
</DriverAviVM>
</DriverList>
<Note>sample string 3</Note>
<sanfList>
<SanfViewModel>
<AviQuantity>4</AviQuantity>
<Price>3.1</Price>
<Quantity>5</Quantity>
<SanfId>1</SanfId>
<SanfName>sample string 2</SanfName>
</SanfViewModel>
<SanfViewModel>
<AviQuantity>4</AviQuantity>
<Price>3.1</Price>
<Quantity>5</Quantity>
<SanfId>1</SanfId>
<SanfName>sample string 2</SanfName>
</SanfViewModel>
</sanfList>
</SaleVM>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |