Skip to content

openapi_cli is a Rust-based command-line tool for generating code from OpenAPI specifications

Notifications You must be signed in to change notification settings

stephane-segning/rust-open-api-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openapi_cli

openapi_cli is a Rust-based command-line tool for generating code from OpenAPI specifications. It provides a simple way to download the OpenAPI generator and then generate code in a specified language.

Features

  • Downloads the OpenAPI generator CLI if it's not already present
  • Generates code in a specified language from an OpenAPI specification file
  • Provides a command-line interface for easy usage

Prerequisites

  • Rust programming language (You can install Rust from here)
  • Java Development Kit (JDK)

Installation

$ git clone https://github.com/stephane-segning/rust-open-api-cli.git
$ cd rust-open-api-cli
$ cargo build --release

The executable will be located in the target/release directory.

Usage

To use the application, run the command below from the command line:

$ ./target/release/openapi_cli generate -v <version> -i <input> -o <output> -l <language>

Replace with the version of OpenAPI generator CLI, <input> with the path to your OpenAPI specification file, with the path to the directory where the generated code should be saved, and with the target language for the generated code.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

openapi_cli is a Rust-based command-line tool for generating code from OpenAPI specifications

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages