mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-14 05:30:51 +00:00
openapi (EXPERIMENTAL)
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
This Dart package is automatically generated by the OpenAPI Generator project:
- API version: 0.0.1
- Build package: org.openapitools.codegen.languages.DartDioClientCodegen
Requirements
- Dart 2.15.0+ or Flutter 2.8.0+
- Dio 5.0.0+ (https://pub.dev/packages/dio)
Installation & Usage
pub.dev
To use the package from pub.dev, please include the following in pubspec.yaml
dependencies:
openapi: 1.0.0
Github
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
Local development
To use the package from your local drive, please include the following in pubspec.yaml
dependencies:
openapi:
path: /path/to/openapi
Getting Started
Please follow the installation procedure and then run the following:
import 'package:openapi/openapi.dart';
final api = Openapi().getDefaultApi();
try {
final response = await api.rootGet();
print(response);
} catch on DioError (e) {
print("Exception when calling DefaultApi->rootGet: $e\n");
}
Documentation for API Endpoints
All URIs are relative to http://localhost
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | rootGet | GET / |
Documentation For Models
Documentation For Authorization
All endpoints do not require authorization.