openapi_generator_cli 3.0.1 openapi_generator_cli: ^3.0.1 copied to clipboard
A dart wrapper around openapi-generator inspired by the node implementation.
CLI generator wrapper for dart/flutter implementation of openapi client code generation.
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec. Please see OpenAPITools/openapi-generator for more information
Usage #
CLI #
Run
pub global activate openapi_generator_cli
Then you can run the generator using the command below.
openapi-generator generate -i http://127.0.0.1:8111/v3/api-docs -g dart
See OpenAPITools/openapi-generator for more commands
Note:
Pub installs executables into {flutter sdk dir}/.pub-cache/bin
, which has to be in your PATH
for the above command to work.
Dart/Flutter #
You can use this package also using the openapi-generator dart plugin that helps you configure the appropriate commands. You can find it here
Features and bugs #
Please file feature requests and bugs at the issue tracker.