GET API/GetUserComments/{Type}/{Id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| Type | integer |
Required |
|
| Id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of CommentModel| Name | Description | Type | Additional information |
|---|---|---|---|
| CommentId | integer |
None. |
|
| Comment | string |
None. |
|
| CommentTypeId | integer |
None. |
|
| CommentTypeName | string |
None. |
|
| ParentCommentId | integer |
None. |
|
| ContentId | integer |
None. |
|
| ContentName | string |
None. |
|
| StudentId | integer |
None. |
|
| StudentName | string |
None. |
|
| UserId | integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"CommentId": 1,
"Comment": "sample string 2",
"CommentTypeId": 3,
"CommentTypeName": "sample string 4",
"ParentCommentId": 1,
"ContentId": 5,
"ContentName": "sample string 6",
"StudentId": 7,
"StudentName": "sample string 8",
"UserId": 9
},
{
"CommentId": 1,
"Comment": "sample string 2",
"CommentTypeId": 3,
"CommentTypeName": "sample string 4",
"ParentCommentId": 1,
"ContentId": 5,
"ContentName": "sample string 6",
"StudentId": 7,
"StudentName": "sample string 8",
"UserId": 9
}
]
application/xml, text/xml
Sample:
<ArrayOfCommentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Entities.ViewModels">
<CommentModel>
<Comment>sample string 2</Comment>
<CommentId>1</CommentId>
<CommentTypeId>3</CommentTypeId>
<CommentTypeName>sample string 4</CommentTypeName>
<ContentId>5</ContentId>
<ContentName>sample string 6</ContentName>
<ParentCommentId>1</ParentCommentId>
<StudentId>7</StudentId>
<StudentName>sample string 8</StudentName>
<UserId>9</UserId>
</CommentModel>
<CommentModel>
<Comment>sample string 2</Comment>
<CommentId>1</CommentId>
<CommentTypeId>3</CommentTypeId>
<CommentTypeName>sample string 4</CommentTypeName>
<ContentId>5</ContentId>
<ContentName>sample string 6</ContentName>
<ParentCommentId>1</ParentCommentId>
<StudentId>7</StudentId>
<StudentName>sample string 8</StudentName>
<UserId>9</UserId>
</CommentModel>
</ArrayOfCommentModel>