b00309c2 years ago7 CommitsPlane Pal API Documentation
This Dart package is automatically generated by the OpenAPI Generator project:
To use the package from pub.dev, please include the following in pubspec.yaml
dependencies:
openapi: 1.0.0
If this Dart package is published to Github, please include the following in pubspec.yaml
dependencies:
openapi:
git:
url: https://github.com/GIT_USER_ID/GIT_REPO_ID.git
#ref: main
To use the package from your local drive, please include the following in pubspec.yaml
dependencies:
openapi:
path: /path/to/openapi
Please follow the installation procedure and then run the following:
import 'package:openapi/openapi.dart';
final api = Openapi().getAirlinesApi();
final String search = search_example; // String | The full(or a part of) name, ident or icao. Case Insensitive.
try {
final response = await api.airlinesControllerGetAirlinesV1(search);
print(response);
} catch on DioException (e) {
print("Exception when calling AirlinesApi->airlinesControllerGetAirlinesV1: $e\n");
}
All URIs are relative to http://localhost
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AirlinesApi | airlinesControllerGetAirlinesV1 | GET /v1/airlines | Get airlines |
| AirportsApi | airportsControllerGetAirportsV1 | GET /v1/airports | Get all airports |
| AppApi | appControllerGetHelloV1 | GET /v1 | |
| AuthenticationApi | authControllerGetCurrentUserV1 | GET /v1/auth/@me | Get current user |
| AuthenticationApi | authControllerLoginV1 | POST /v1/auth/login | Login |
| AuthenticationApi | authControllerRegisterV1 | POST /v1/auth/register | Register |
Authentication schemes defined for the API:
| flightControllerGetFlightV1 |
| GET /v1/flight |
| Get flight details |
| FlightsApi | flightsControllerGetAirlineV1 | POST /v1/flights/airline | Get airline |
| FlightsApi | flightsControllerGetFlightsV1 | GET /v1/flights | Get flights between two airports |