POST api/PersonReviews/Post
Creates reviews for the specified reviwee. If the reviewee is a student/tutor, his average review is updated. If the event is a study session, Student/Tutor rank is updated and the type code is increased if necessary.
Request Information
URI Parameters
None.
Body Parameters
PostReviewDto| Name | Description | Type | Additional information |
|---|---|---|---|
| EventId | integer |
Required |
|
| RevieweeId | integer |
Required |
|
| ReviewQuestionsScores | Collection of ReviewQuestionScoreDto |
Required |
Request Formats
application/json, text/json
Sample:
{
"EventId": 1,
"RevieweeId": 2,
"ReviewQuestionsScores": [
{
"ReviewQuestionId": 1,
"Score": 2
},
{
"ReviewQuestionId": 1,
"Score": 2
}
]
}
application/xml, text/xml
Sample:
<PostReviewDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StudyTree.Core.Dtos.ReviewNs">
<EventId>1</EventId>
<ReviewQuestionsScores>
<ReviewQuestionScoreDto>
<ReviewQuestionId>1</ReviewQuestionId>
<Score>2</Score>
</ReviewQuestionScoreDto>
<ReviewQuestionScoreDto>
<ReviewQuestionId>1</ReviewQuestionId>
<Score>2</Score>
</ReviewQuestionScoreDto>
</ReviewQuestionsScores>
<RevieweeId>2</RevieweeId>
</PostReviewDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
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. |