GET api/Flight/GetAirlinesWithFlights?isLocal={isLocal}
This returns a result of all airlines and their associated flights
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| isLocal | boolean |
Required |
Body Parameters
None.
Response Information
Resource Description
A list of airlines with the corresponding list of flights
IHttpActionResultNone.
Response Formats
application/json
Sample:
{
"Response": [
{
"AirlineId": 1,
"AirlineCodeName": "British Airways (BAW)",
"Flights": [
{
"FlightId": 3,
"FlightNumber": "A0554"
},
{
"FlightId": 3,
"FlightNumber": "A0554"
}
]
},
{
"AirlineId": 1,
"AirlineCodeName": "British Airways (BAW)",
"Flights": [
{
"FlightId": 3,
"FlightNumber": "A0554"
},
{
"FlightId": 3,
"FlightNumber": "A0554"
}
]
}
],
"ErrorMessages": []
}
text/json
Sample:
{
"Response": [],
"ErrorMessages": [
"All errors recorded here."
]
}