Skip to main content

tom_core_openapi 0.1.0 copy "tom_core_openapi: ^0.1.0" to clipboard
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_openapi

Use 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_openapi

With Flutter:

 $ flutter pub add tom_core_openapi

This 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.0

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:tom_core_openapi/tom_core_openapi.dart';
0
likes
150
points
37
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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.

Homepage
Repository (GitHub)

License

BSD-3-Clause (license)

Dependencies

path, tom_build_base, tom_core_kernel, tom_core_server

More

Packages that depend on tom_core_openapi