mvc_swagger_codegen 0.0.4
mvc_swagger_codegen: ^0.0.4 copied to clipboard
A command-line tool to generate Provider-based MVC architecture and API controllers directly from a Swagger JSON file.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate mvc_swagger_codegenUse it
The package has the following executables:
$ mvc_swagger_codegen
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add mvc_swagger_codegenThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
mvc_swagger_codegen: ^0.0.4Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:mvc_swagger_codegen/mvc_swagger_codegen.dart';