POST api/ng/articles/articlecommentsubmit

Request Information

URI Parameters

None.

Body Parameters

NgArticleCommentSubmitModel
NameDescriptionTypeAdditional information
pageID

integer

None.

parentCommentID

integer

None.

commentContent

string

None.

Request Formats

application/json, text/json

Sample:
{
  "pageID": 1,
  "parentCommentID": 2,
  "commentContent": "sample string 3"
}

application/xml, text/xml

Sample:
<NgArticleCommentSubmitModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoulSeasons2017.Models.Angular">
  <commentContent>sample string 3</commentContent>
  <pageID>1</pageID>
  <parentCommentID>2</parentCommentID>
</NgArticleCommentSubmitModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'NgArticleCommentSubmitModel'.

Response Information

Resource Description

NgCommentResultModel
NameDescriptionTypeAdditional information
IsSuccess

boolean

None.

ErrorType

CommentSubmitError

None.

AppendComment

NgArticleCommentModel

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'SoulSeasons2017.Models.Angular.NgArticleCommentModel'. Path 'AppendComment.childComments'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'SoulSeasons2017.Models.Angular.NgArticleCommentModel'. Path 'AppendComment.childComments'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'SoulSeasons2017.Models.Angular.NgArticleCommentModel' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'SoulSeasons2017.Models.Angular.NgArticleCommentModel' contains cycles and cannot be serialized if reference tracking is disabled.