POST api/Feedback/CreaFeedback

Crea un nuovo feedback su una corsa eseguita

Request Information

URI Parameters

None.

Body Parameters

FeedBackBindingModels
NameDescriptionTypeAdditional information
IDCorsa

Riferimento corsa

integer

Required

Commento

Commento del feedback

string

None.

Stelle

Numero stelline

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "IDCorsa": 1,
  "Commento": "sample string 2",
  "Stelle": 3
}

text/html

Sample:
{"IDCorsa":1,"Commento":"sample string 2","Stelle":3}

application/xml, text/xml

Sample:
<FeedBackBindingModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TaxiServer.Models">
  <Commento>sample string 2</Commento>
  <IDCorsa>1</IDCorsa>
  <Stelle>3</Stelle>
</FeedBackBindingModels>

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.