POST api/CreateFilmComment

Request Information

URI Parameters

None.

Body Parameters

FilmComment
NameDescriptionTypeAdditional information
Id

integer

None.

CustomerId

integer

None.

FilmId

integer

None.

IsApproved

boolean

None.

Title

string

None.

ReviewText

string

None.

Rating

integer

None.

HelpfulYesTotal

integer

None.

HelpfulNoTotal

integer

None.

CreatedOnUtc

date

None.

IsDisabled

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "CustomerId": 2,
  "FilmId": 3,
  "IsApproved": true,
  "Title": "sample string 5",
  "ReviewText": "sample string 6",
  "Rating": 7,
  "HelpfulYesTotal": 8,
  "HelpfulNoTotal": 9,
  "CreatedOnUtc": "2025-06-01T09:50:05.0103703+07:00",
  "IsDisabled": true
}

application/xml, text/xml

Sample:
<FilmComment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RCPQG_API.Models">
  <CreatedOnUtc>2025-06-01T09:50:05.0103703+07:00</CreatedOnUtc>
  <CustomerId>2</CustomerId>
  <FilmId>3</FilmId>
  <HelpfulNoTotal>9</HelpfulNoTotal>
  <HelpfulYesTotal>8</HelpfulYesTotal>
  <Id>1</Id>
  <IsApproved>true</IsApproved>
  <IsDisabled>true</IsDisabled>
  <Rating>7</Rating>
  <ReviewText>sample string 6</ReviewText>
  <Title>sample string 5</Title>
</FilmComment>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.