swagger_generator 0.0.4
swagger_generator: ^0.0.4 copied to clipboard
Create a swagger API document with less effort. swagger_generator is built as Dio interceptor, that record request/response then create swagger.json
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add swagger_generatorThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
swagger_generator: ^0.0.4Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:swagger_generator/swagger_generator.dart';