tom_core_openapi 0.1.0
tom_core_openapi: ^0.1.0 copied to clipboard
OpenAPI 3.1 for Tom servers — generates the document from the endpoint annotations and reflected DTOs, validates it, and generates a typed Dart client from it. A tom_build_base command-line tool.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate tom_core_openapiUse it
The package has the following executables:
$ openapi
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add tom_core_openapiWith Flutter:
$ flutter pub add tom_core_openapiThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
tom_core_openapi: ^0.1.0Alternatively, 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:tom_core_openapi/tom_core_openapi.dart';