POST api/appointment/create
Request Information
URI Parameters
None.
Body Parameters
AppointmentRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| YomanID | string |
None. |
|
| Appointments | Collection of AppointmentModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"YomanID": "sample string 1",
"Appointments": [
{
"AppDate": "sample string 1",
"IdentityPassport": "sample string 2",
"HTC": "sample string 3",
"StartTime": "sample string 4",
"EndTime": "sample string 5",
"IsCancelled": true,
"LastName": "sample string 7",
"Name": "sample string 8",
"RoyID": 9
},
{
"AppDate": "sample string 1",
"IdentityPassport": "sample string 2",
"HTC": "sample string 3",
"StartTime": "sample string 4",
"EndTime": "sample string 5",
"IsCancelled": true,
"LastName": "sample string 7",
"Name": "sample string 8",
"RoyID": 9
}
]
}
application/xml, text/xml
Sample:
<AppointmentRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShiduritAPI.Models">
<Appointments>
<AppointmentModel>
<AppDate>sample string 1</AppDate>
<EndTime>sample string 5</EndTime>
<HTC>sample string 3</HTC>
<IdentityPassport>sample string 2</IdentityPassport>
<IsCancelled>true</IsCancelled>
<LastName>sample string 7</LastName>
<Name>sample string 8</Name>
<RoyID>9</RoyID>
<StartTime>sample string 4</StartTime>
</AppointmentModel>
<AppointmentModel>
<AppDate>sample string 1</AppDate>
<EndTime>sample string 5</EndTime>
<HTC>sample string 3</HTC>
<IdentityPassport>sample string 2</IdentityPassport>
<IsCancelled>true</IsCancelled>
<LastName>sample string 7</LastName>
<Name>sample string 8</Name>
<RoyID>9</RoyID>
<StartTime>sample string 4</StartTime>
</AppointmentModel>
</Appointments>
<YomanID>sample string 1</YomanID>
</AppointmentRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.