POST api/guest/setappointment?guestid={guestid}&businessid={businessid}&price={price}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| guestid | integer |
Required |
|
| businessid | integer |
Required |
|
| price | decimal number |
Required |
Body Parameters
Collection of BusinessServiceAPIViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| AppointmentID | integer |
None. |
|
| Price | decimal number |
None. |
|
| BookingTime | string |
None. |
|
| BookingDate | string |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"AppointmentID": 1,
"Price": 1.0,
"BookingTime": "sample string 2",
"BookingDate": "sample string 3"
},
{
"AppointmentID": 1,
"Price": 1.0,
"BookingTime": "sample string 2",
"BookingDate": "sample string 3"
}
]
text/html
Sample:
[{"AppointmentID":1,"Price":1.0,"BookingTime":"sample string 2","BookingDate":"sample string 3"},{"AppointmentID":1,"Price":1.0,"BookingTime":"sample string 2","BookingDate":"sample string 3"}]
application/xml, text/xml
Sample:
<ArrayOfBusinessServiceAPIViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BookRYT.Models">
<BusinessServiceAPIViewModel>
<AppointmentID>1</AppointmentID>
<BookingDate>sample string 3</BookingDate>
<BookingTime>sample string 2</BookingTime>
<Price>1</Price>
</BusinessServiceAPIViewModel>
<BusinessServiceAPIViewModel>
<AppointmentID>1</AppointmentID>
<BookingDate>sample string 3</BookingDate>
<BookingTime>sample string 2</BookingTime>
<Price>1</Price>
</BusinessServiceAPIViewModel>
</ArrayOfBusinessServiceAPIViewModel>
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. |