actix-swagger
Swagger code generator for actix-web framework
File Explorer
Download Latest Version (.zip)- pr-labeler.yml
- release-drafter.yml
- release.yml
- rust.yml
- pr-labeler.yml
- release-drafter.yml
- error.rs
- lib.rs
- Cargo.toml
- main.rs
- Cargo.toml
- lib.rs
- Cargo.toml
- openapi.json
- openapi.yaml
- mod.rs
- methods.rs
- mod.rs
- module.rs
- structure.rs
- component.rs
- mod.rs
- module.rs
- parameters.rs
- request_bodies.rs
- responses.rs
- schemas.rs
- mod.rs
- module.rs
- path.rs
- response_status.rs
- mod.rs
- lib.rs
- test.rs
- Cargo.toml
- .gitignore
- .rustfmt.toml
- Cargo.lock
- Cargo.toml
- LICENSE
- Makefile.toml
- README.md
# Installation Guide
git clone https://github.com/oapigen/actix-swagger
Downloads the entire project code from GitHub to your computer.
cd actix-swagger
Moves into the project folder you just downloaded.
2. Official Install Script
Easy Recommended- Rust (rustup) Rust is required to use cargo.
cargo install cargo-swagg
Builds and installs the package published on crates.io โ no need to clone the repo yourself.
cargo install cargo-make
Builds and installs the package published on crates.io โ no need to clone the repo yourself.
Pulled directly from this repo's README.
3. Rust
Medium- Git Needed to download the project code from GitHub.
- Rust (rustup) Installing via rustup also installs cargo.
cargo install cargo-swagg
Builds and installs the package published on crates.io โ no need to clone the repo yourself.
cargo add actix-swagger
Type this command into your terminal and run it.
cargo swagg ./openapi.yaml --out-file ./src/api.rs
Type this command into your terminal and run it.
cargo install cargo-make
Builds and installs the package published on crates.io โ no need to clone the repo yourself.
cargo make
Type this command into your terminal and run it.
Pulled directly from this repo's README.
