POST api/Ticket
Creates Ticket in the database
Request Information
URI Parameters
None.
Body Parameters
Ticket Object from UI
Ticket| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| IDTicket | string |
None. |
|
| FlightID | integer |
None. |
|
| BookingID | integer |
None. |
|
| PassengerID | integer |
None. |
|
| Seat | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"IDTicket": "sample string 2",
"FlightID": 1,
"BookingID": 1,
"PassengerID": 1,
"Seat": "sample string 6"
}
application/xml
Sample:
Sample not available.
text/xml
Sample:
Sample not available.
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Action Result
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.