POST api/StudentSr/Post
Saves the student's self reflection in regards to the topics in the specified assignment.
Request Information
URI Parameters
None.
Body Parameters
PostSrDtoName | Description | Type | Additional information |
---|---|---|---|
AssignmentId | integer |
Required |
|
TopicScores | Collection of TopicScoreDto |
Required |
Request Formats
application/json, text/json
Sample:
{ "AssignmentId": 1, "TopicScores": [ { "TopicId": 1, "Score": 2 }, { "TopicId": 1, "Score": 2 } ] }
application/xml, text/xml
Sample:
<PostSrDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StudyTree.Core.Dtos.StudentNs"> <AssignmentId>1</AssignmentId> <TopicScores xmlns:d2p1="http://schemas.datacontract.org/2004/07/StudyTree.Common.Dtos.CourseNs"> <d2p1:TopicScoreDto> <d2p1:Score>2</d2p1:Score> <d2p1:TopicId>1</d2p1:TopicId> </d2p1:TopicScoreDto> <d2p1:TopicScoreDto> <d2p1:Score>2</d2p1:Score> <d2p1:TopicId>1</d2p1:TopicId> </d2p1:TopicScoreDto> </TopicScores> </PostSrDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | 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. |