GET api/Tickets

Gets the full list of tickets registered in the database.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

A list of airplanes.

Collection of Ticket
NameDescriptionTypeAdditional information
Id

integer

None.

FlightId

integer

None.

SeatId

integer

None.

Price

decimal number

None.

ClientId

integer

None.

PaymentMethod

string

None.

Seat

Seat

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "FlightId": 1,
    "SeatId": 1,
    "Price": 4.0,
    "ClientId": 1,
    "PaymentMethod": "Card",
    "Seat": {
      "Id": 1,
      "Row": 2,
      "Letter": "sample string 3",
      "Type": "Economic",
      "IsAvailable": true,
      "AirplaneId": 1
    }
  },
  {
    "Id": 1,
    "FlightId": 1,
    "SeatId": 1,
    "Price": 4.0,
    "ClientId": 1,
    "PaymentMethod": "Card",
    "Seat": {
      "Id": 1,
      "Row": 2,
      "Letter": "sample string 3",
      "Type": "Economic",
      "IsAvailable": true,
      "AirplaneId": 1
    }
  }
]