POST api/Comments/AddComment/{id}?entityName={entityName}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

string

Required

entityName

string

Required

Body Parameters

Comment
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Subject

string

None.

Content

string

None.

Date

date

None.

CommentBy

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "c445d194-9744-4903-aeb5-909afe965245",
  "Subject": "sample string 2",
  "Content": "sample string 3",
  "Date": "2024-12-07T04:16:30.4609599+00:00",
  "CommentBy": "sample string 5"
}

text/html

Sample:
{"Id":"c445d194-9744-4903-aeb5-909afe965245","Subject":"sample string 2","Content":"sample string 3","Date":"2024-12-07T04:16:30.4609599+00:00","CommentBy":"sample string 5"}

application/xml, text/xml

Sample:
<Comment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BRH.Services.Models">
  <CommentBy>sample string 5</CommentBy>
  <Content>sample string 3</Content>
  <Date>2024-12-07T04:16:30.4609599+00:00</Date>
  <Id>c445d194-9744-4903-aeb5-909afe965245</Id>
  <Subject>sample string 2</Subject>
</Comment>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

JsonResultOfString
NameDescriptionTypeAdditional information
Content

string

None.

SerializerSettings

JsonSerializerSettings

None.

Encoding

Encoding

None.

Request

HttpRequestMessage

None.

Response Formats

application/json, text/json, text/html

Sample:

Sample not available.