openapi_dart_common 5.1.1 copy "openapi_dart_common: ^5.1.1" to clipboard
openapi_dart_common: ^5.1.1 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

With Flutter:

 $ flutter 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: ^5.1.1

Alternatively, your editor might support dart pub get or flutter 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_delegates.dart';
import 'package:openapi_dart_common/api_dio_client_delegate.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/deserialisation_error.dart';
import 'package:openapi_dart_common/openapi.dart';
4
likes
130
points
3.88k
downloads

Publisher

verified publisherbluebiscuitdesign.dev

Weekly Downloads

OpenAPI API common libraries so the generator doesn't generate them

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause (license)

Dependencies

dio, logging

More

Packages that depend on openapi_dart_common