POST api/AddComments/InsertLikes

Request Information

URI Parameters

None.

Body Parameters

Comment
NameDescriptionTypeAdditional information
ResourceID

string

None.

UserID

string

None.

Comments

string

None.

like

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ResourceID": "sample string 1",
  "UserID": "sample string 2",
  "Comments": "sample string 3",
  "like": 4
}

application/xml, text/xml

Sample:
<Comment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalStudentServices.Models">
  <Comments>sample string 3</Comments>
  <ResourceID>sample string 1</ResourceID>
  <UserID>sample string 2</UserID>
  <like>4</like>
</Comment>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.