change UI of flight stats425c112a year ago115 lines · 4.0 KB | 1 | # openapi.api.FlightApi |
| 2 | |
| 3 | ## Load the API package |
| 4 | ```dart |
| 5 | import 'package:openapi/api.dart'; |
| 6 | ``` |
| 7 | |
| 8 | All URIs are relative to *http://localhost* |
| 9 | |
| 10 | Method | HTTP request | Description |
| 11 | ------------- | ------------- | ------------- |
| 12 | [**flightControllerGetFlightTrackV1**]( |
| 13 | [**flightControllerGetFlightV1**]( |
| 14 | |
| 15 | |
| 16 | # **flightControllerGetFlightTrackV1 |
| 17 | > FlightTrackResponseEntity flightControllerGetFlightTrackV1(iata, icao, timezone, date) |
| 18 | |
| 19 | Get flight track/path |
| 20 | |
| 21 | Get the flight path with all position data points for a specific flight |
| 22 | |
| 23 | ### Example |
| 24 | ```dart |
| 25 | import 'package:openapi/api.dart'; |
| 26 | |
| 27 | final api = Openapi(). |
| 28 | final String iata = UA123 |
| 29 | final String icao = UAL123 |
| 30 | final String timezone = IST |
| 31 | final String date = 2024 |
| 32 | |
| 33 | try { |
| 34 | final response = api.flightControllerGetFlightTrackV1 |
| 35 | print(response); |
| 36 | } catch on DioException (e) { |
| 37 | print('Exception when calling FlightApi->flightControllerGetFlightTrackV1: $e\n |
| 38 | } |
| 39 | ``` |
| 40 | |
| 41 | ### Parameters |
| 42 | |
| 43 | Name | Type | Description | Notes |
| 44 | ------------- | ------------- | ------------- | ------------- |
| 45 | **iata** | ** |
| 46 | **icao** | ** |
| 47 | **timezone** | ** |
| 48 | **date** | ** |
| 49 | |
| 50 | ### Return type |
| 51 | |
| 52 | [**FlightTrackResponseEntity**]( |
| 53 | |
| 54 | ### Authorization |
| 55 | |
| 56 | [JWT-auth](../README.md#JWT-auth) |
| 57 | |
| 58 | ### HTTP request headers |
| 59 | |
| 60 | - **Content-Type** |
| 61 | - **Accept** |
| 62 | |
| 63 | [[Back to top]](#) |
| 64 | |
| 65 | # **flightControllerGetFlightV1 |
| 66 | > FlightResponseEntity flightControllerGetFlightV1(iata, icao, timezone, date, forceUpdate) |
| 67 | |
| 68 | Get flight details |
| 69 | |
| 70 | Get detailed information about a specific flight including real-time tracking data |
| 71 | |
| 72 | ### Example |
| 73 | ```dart |
| 74 | import 'package:openapi/api.dart'; |
| 75 | |
| 76 | final api = Openapi(). |
| 77 | final String iata = UA123 |
| 78 | final String icao = UAL123 |
| 79 | final String timezone = timezone_example; |
| 80 | final String date = 2024 |
| 81 | final bool forceUpdate = true |
| 82 | |
| 83 | try { |
| 84 | final response = api.flightControllerGetFlightV1 |
| 85 | print(response); |
| 86 | } catch on DioException (e) { |
| 87 | print('Exception when calling FlightApi->flightControllerGetFlightV1: $e\n |
| 88 | } |
| 89 | ``` |
| 90 | |
| 91 | ### Parameters |
| 92 | |
| 93 | Name | Type | Description | Notes |
| 94 | ------------- | ------------- | ------------- | ------------- |
| 95 | **iata** | ** |
| 96 | **icao** | ** |
| 97 | **timezone** | ** |
| 98 | **date** | ** |
| 99 | **forceUpdate** | ** |
| 100 | |
| 101 | ### Return type |
| 102 | |
| 103 | [**FlightResponseEntity**]( |
| 104 | |
| 105 | ### Authorization |
| 106 | |
| 107 | [JWT-auth](../README.md#JWT-auth) |
| 108 | |
| 109 | ### HTTP request headers |
| 110 | |
| 111 | - **Content-Type** |
| 112 | - **Accept** |
| 113 | |
| 114 | [[Back to top]](#) |
| 115 | |
FlightApi.md#flightcontrollergetflighttrackv1
)
|
**
GET
**
/v1/flight/track | Get flight track/path
FlightApi.md#flightcontrollergetflightv1
)
|
**
GET
**
/v1/flight | Get flight details
**
getFlightApi
()
;
;
// String | IATA flight number
;
// String | ICAO flight number
;
// String | The timezone from which the request is being made.
-
03
-
20
;
// String | Flight date (ISO format). Defaults to current date if not provided
(iata
,
icao
,
timezone
,
date)
;
'
)
;
String
**
| IATA flight number |
String
**
| ICAO flight number |
String
**
| The timezone from which the request is being made. |
String
**
| Flight date (ISO format). Defaults to current date if not provided |
[
optional
]
FlightTrackResponseEntity.md
)
: Not defined
: application/json
[
[Back to API list]
]
(
../README.md#documentation-for-api-endpoints
)
[
[Back to Model list]
]
(
../README.md#documentation-for-models
)
[
[Back to README]
]
(
../README.md
)
**
getFlightApi
()
;
;
// String | IATA flight number
;
// String | ICAO flight number
// String | The timezone from which the request is being made.
-
03
-
20
;
// String | Flight date (ISO format). Defaults to current date if not provided
;
// bool | Force update the flight data(used to refresh the flight data)
(iata
,
icao
,
timezone
,
date
,
forceUpdate)
;
'
)
;
String
**
| IATA flight number |
String
**
| ICAO flight number |
String
**
| The timezone from which the request is being made. |
String
**
| Flight date (ISO format). Defaults to current date if not provided |
[
optional
]
bool
**
| Force update the flight data(used to refresh the flight data) |
[
optional
]
[default to false]
FlightResponseEntity.md
)
: Not defined
: application/json
[
[Back to API list]
]
(
../README.md#documentation-for-api-endpoints
)
[
[Back to Model list]
]
(
../README.md#documentation-for-models
)
[
[Back to README]
]
(
../README.md
)