https://github.com/totalkrill/openapi_rocketapi
https://github.com/totalkrill/openapi_rocketapi
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/totalkrill/openapi_rocketapi
- Owner: TotalKrill
- License: mit
- Created: 2019-09-05T22:57:24.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-05T22:59:43.000Z (almost 7 years ago)
- Last Synced: 2025-03-10T03:54:55.728Z (over 1 year ago)
- Language: Rust
- Size: 173 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# open api [](https://travis-ci.org/softprops/openapi) [](LICENSE) [](https://crates.io/crates/openapi)
> Rust crate for serializing and deserializing [open api](http://swagger.io/specification/) documents
[Documentation](https://softprops.github.io/openapi)
## install
add the following to your `Cargo.toml` file
```toml
[dependencies]
openapi = "0.1"
```
## usage
```rust
extern crate openapi;
fn main() {
match openapi::from_path("path/to/openapi.yaml") {
Ok(spec) => println!("spec: {:?}", spec),
Err(err) => println!("error: {}", err)
}
}
```
Doug Tangren (softprops) 2017