POST api/v1/collection/{id}/comment

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

PostComment
NameDescriptionTypeAdditional information
Text

string

None.

Request Formats

application/json, text/json

Sample:
{
  "text": "sample string 1"
}

application/xml, text/xml

Sample:
<PostComment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FremtidNU.Models">
  <Text>sample string 1</Text>
</PostComment>

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

None.