Stars Build Status Downloads Crates.io

petstore client, generated from the OpenAPI spec.

Usage

use petstore::PetstoreClient;
use petstore::model::*;
#[tokio::main]
async fn main() {
    let client = PetstoreClient::from_env();
    let response = client.list_pets().limit(1).await.unwrap();
    println!("{:#?}", response);
}

This example loads configuration from environment variables, specifically:

Installation

Add this to your Cargo.toml:

[dependencies]
petstore = "0.1.0"

Documentation

You can see working examples of every API call in the examples/ directory.

Contributing

Contributions are welcome!

Library created with Libninja.