POST api/Corse/RifiutaCorsaTaxi

Chiamato dal taxi, ad indicare che il taxi a rifiutato la corsa. Imposta la corsa con lo stato di rifiutata

Request Information

URI Parameters

None.

Body Parameters

CorsaID
NameDescriptionTypeAdditional information
IDCorsa

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "IDCorsa": 1
}

text/html

Sample:
{"IDCorsa":1}

application/xml, text/xml

Sample:
<CorsaID xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TaxiServer.Models">
  <IDCorsa>1</IDCorsa>
</CorsaID>

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

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.