POST AddCarReservation
Request Information
URI Parameters
None.
Body Parameters
CarReservation| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| CarId | integer |
None. |
|
| CarPrice | decimal number |
None. |
|
| Year | string |
None. |
|
| Color | string |
None. |
|
| Specifications | string |
None. |
|
| MonthCount | integer |
None. |
|
| Payment | decimal number |
None. |
|
| Rate | decimal number |
None. |
|
| InsuraneRate | decimal number |
None. |
|
| YearInsuranceInstallment | decimal number |
None. |
|
| MonthlyInstallment | decimal number |
None. |
|
| Userid | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"CarId": 2,
"CarPrice": 3.0,
"Year": "sample string 4",
"Color": "sample string 5",
"Specifications": "sample string 6",
"MonthCount": 1,
"Payment": 1.0,
"Rate": 1.0,
"InsuraneRate": 1.0,
"YearInsuranceInstallment": 1.0,
"MonthlyInstallment": 1.0,
"Userid": "adfb52ba-7106-4c47-8af7-778ee31ec8d6"
}
application/xml, text/xml
Sample:
<CarReservation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MasriaAPI"> <CarId>2</CarId> <CarPrice>3</CarPrice> <Color>sample string 5</Color> <Id>1</Id> <InsuraneRate>1</InsuraneRate> <MonthCount>1</MonthCount> <MonthlyInstallment>1</MonthlyInstallment> <Payment>1</Payment> <Rate>1</Rate> <Specifications>sample string 6</Specifications> <Userid>adfb52ba-7106-4c47-8af7-778ee31ec8d6</Userid> <Year>sample string 4</Year> <YearInsuranceInstallment>1</YearInsuranceInstallment> </CarReservation>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.