GET api/Flight
List of all Flights in the database
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
List with all Flights in the database
Collection of Flight| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| IDFlight | string |
None. |
|
| FlightDateTime | date |
None. |
|
| FlightDuration | integer |
None. |
|
| Price | decimal number |
None. |
|
| PlaneId | integer |
None. |
|
| OriginId | integer |
None. |
|
| DestinationId | integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"IDFlight": "sample string 2",
"FlightDateTime": "2026-08-25T00:14:41.8772689-05:00",
"FlightDuration": 4,
"Price": 5.0,
"PlaneId": 1,
"OriginId": 1,
"DestinationId": 1
},
{
"Id": 1,
"IDFlight": "sample string 2",
"FlightDateTime": "2026-08-25T00:14:41.8772689-05:00",
"FlightDuration": 4,
"Price": 5.0,
"PlaneId": 1,
"OriginId": 1,
"DestinationId": 1
}
]
application/xml
Sample:
Sample not available.
text/xml
Sample:
Sample not available.