openapi_dart_common 1.1.0 openapi_dart_common: ^1.1.0 copied to clipboard
OpenAPI API common libraries so the generator doesn't generate them
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add openapi_dart_common
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
openapi_dart_common: ^1.1.0
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:openapi_dart_common/api_client.dart';
import 'package:openapi_dart_common/api_exception.dart';
import 'package:openapi_dart_common/api_helper.dart';
import 'package:openapi_dart_common/auth/api_key_auth.dart';
import 'package:openapi_dart_common/auth/authentication.dart';
import 'package:openapi_dart_common/auth/http_basic_auth.dart';
import 'package:openapi_dart_common/auth/oauth.dart';
import 'package:openapi_dart_common/openapi.dart';
import 'package:openapi_dart_common/openapi_browser_api.dart';
import 'package:openapi_dart_common/openapi_cli_api.dart';