POST api/Comment

Request Information

URI Parameters

None.

Body Parameters

utblComment
NameDescriptionTypeAdditional information
CommentID

integer

None.

CommentDesc

string

None.

Username

string

None.

CommentDate

date

None.

AlertID

integer

None.

ProfileName

string

None.

Sender

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CommentID": 1,
  "CommentDesc": "sample string 2",
  "Username": "sample string 3",
  "CommentDate": "2017-12-12T13:36:16.3194078+05:30",
  "AlertID": 5,
  "ProfileName": "sample string 6",
  "Sender": "sample string 7"
}

application/xml, text/xml

Sample:
<utblComment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/mPigeonAPI.Models">
  <AlertID>5</AlertID>
  <CommentDate>2017-12-12T13:36:16.3194078+05:30</CommentDate>
  <CommentDesc>sample string 2</CommentDesc>
  <CommentID>1</CommentID>
  <ProfileName>sample string 6</ProfileName>
  <Sender>sample string 7</Sender>
  <Username>sample string 3</Username>
</utblComment>

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

Response Information

Resource Description

utblComment
NameDescriptionTypeAdditional information
CommentID

integer

None.

CommentDesc

string

None.

Username

string

None.

CommentDate

date

None.

AlertID

integer

None.

ProfileName

string

None.

Sender

string

None.

Response Formats

application/json, text/json

Sample:
{
  "CommentID": 1,
  "CommentDesc": "sample string 2",
  "Username": "sample string 3",
  "CommentDate": "2017-12-12T13:36:16.3194078+05:30",
  "AlertID": 5,
  "ProfileName": "sample string 6",
  "Sender": "sample string 7"
}

application/xml, text/xml

Sample:
<utblComment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/mPigeonAPI.Models">
  <AlertID>5</AlertID>
  <CommentDate>2017-12-12T13:36:16.3194078+05:30</CommentDate>
  <CommentDesc>sample string 2</CommentDesc>
  <CommentID>1</CommentID>
  <ProfileName>sample string 6</ProfileName>
  <Sender>sample string 7</Sender>
  <Username>sample string 3</Username>
</utblComment>