POST api/rating/submit

Request Information

URI Parameters

None.

Body Parameters

RatingModel
NameDescriptionTypeAdditional information
TripID

integer

None.

Rating

integer

None.

Comment

string

None.

SaveAddress

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "TripID": 1,
  "Rating": 2,
  "Comment": "sample string 3",
  "SaveAddress": true
}

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.