4 releases (major breaking)

3.0.0 Nov 27, 2022
2.0.0 Oct 21, 2022
1.0.0 Oct 14, 2022
0.1.0 Nov 23, 2020

#2456 in Web programming

31 downloads per month

MIT license

155KB
3K SLoC

Stars Build Status Downloads Crates.io

Postman client, generated from the OpenAPI spec.

Usage

use postman::PostmanClient;
use postman::model::*;
#[tokio::main]
async fn main() {
    let client = PostmanClient::from_env();
    let response = client
        .get_all_apis()
        .workspace("your workspace")
        .since("your since")
        .until("your until")
        .created_by("your created by")
        .updated_by("your updated by")
        .is_public(true)
        .name("your name")
        .summary("your summary")
        .description("your description")
        .sort("your sort")
        .direction("your direction")
        .send()
        .await
        .unwrap();
    println!("{:#?}", response);
}

This example loads configuration from environment variables, specifically:

  • POSTMAN_API_KEY

Installation

Add this to your Cargo.toml:

[dependencies]
postman = "1.0.0"

Documentation

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

Contributing

Contributions are welcome!

Library created with Libninja.

Dependencies

~15–28MB
~552K SLoC