POST api/v1/bookings/{bookingId}/rating
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| bookingId | integer |
Required |
Body Parameters
RateBookingRequestDto| Name | Description | Type | Additional information |
|---|---|---|---|
| BookingId | integer |
None. |
|
| PersonId | integer |
None. |
|
| StudentPersonId | integer |
None. |
|
| StudentRating | integer |
None. |
|
| OverallRating | integer |
None. |
|
| Rating | integer |
None. |
|
| Stars | integer |
None. |
|
| ReviewComment | string |
None. |
|
| Comment | string |
None. |
|
| Notes | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"BookingId": 1,
"PersonId": 1,
"StudentPersonId": 1,
"StudentRating": 1,
"OverallRating": 1,
"Rating": 1,
"Stars": 1,
"ReviewComment": "sample string 1",
"Comment": "sample string 2",
"Notes": "sample string 3"
}
application/xml, text/xml
Sample:
<RateBookingRequestDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Equestrian.Entities.HorseTrainer"> <BookingId>1</BookingId> <Comment>sample string 2</Comment> <Notes>sample string 3</Notes> <OverallRating>1</OverallRating> <PersonId>1</PersonId> <Rating>1</Rating> <ReviewComment>sample string 1</ReviewComment> <Stars>1</Stars> <StudentPersonId>1</StudentPersonId> <StudentRating>1</StudentRating> </RateBookingRequestDto>
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.