POST api/1/Comments/Post

Posts a new comment to the application identified by the calling URL.

Request Information

URI Parameters

None.

Body Parameters

CommentPostDTO
NameDescriptionTypeAdditional information
ParentID

The comment's parent ID (i.e., if this is a reply to another comment).

integer

None.

CommentText

The text of the comment.

string

Required

UserToken

The user's auth token issued by the server.

string

Required

ResourceKey

The key identifying this resource.

string

Required

ResourcePath

The applicaiton/relative URL that identifies this resource.

string

Required

Request Formats

application/json, text/json

Sample:
{
  "ParentID": 1,
  "CommentText": "sample string 1",
  "UserToken": "sample string 2",
  "ResourceKey": "sample string 3",
  "ResourcePath": "sample string 4"
}

application/xml, text/xml

Sample:
<CommentPostDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RCS.Web.api._1.DTO">
  <CommentText>sample string 1</CommentText>
  <ParentID>1</ParentID>
  <ResourceKey>sample string 3</ResourceKey>
  <ResourcePath>sample string 4</ResourcePath>
  <UserToken>sample string 2</UserToken>
</CommentPostDTO>

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 'CommentPostDTO'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.