POST Article/{id}/Comment

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

ArticleCommentDto
NameDescriptionTypeAdditional information
CommentId

integer

None.

AuthorId

string

Required

String length: inclusive between 0 and 128

ParentId

integer

None.

Text

string

Required

ArticleId

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "CommentId": 1,
  "AuthorId": "sample string 2",
  "ParentId": 1,
  "Text": "sample string 3",
  "ArticleId": 4
}

application/xml, text/xml

Sample:
<ArticleCommentDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PackageSite.Models.Dto">
  <ArticleId>4</ArticleId>
  <AuthorId>sample string 2</AuthorId>
  <CommentId>1</CommentId>
  <ParentId>1</ParentId>
  <Text>sample string 3</Text>
</ArticleCommentDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.