Crates.io | postman-api |
lib.rs | postman-api |
version | 2.0.0 |
source | src |
created_at | 2022-09-29 21:52:39.804024 |
updated_at | 2022-10-11 18:47:26.051778 |
description | Postman client, generated from the OpenAPI spec. |
homepage | https://github.com/libninjacom/postman-rs |
repository | https://github.com/libninjacom/postman-rs |
max_upload_size | |
id | 676932 |
size | 196,121 |
Postman client, generated from the OpenAPI spec.
use postman_api::PostmanClient;
use postman_api::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_BASE_URL
POSTMAN_POSTMAN_API_KEY
Add this to your Cargo.toml:
[dependencies]
postman-api = "0.1.0"
You can see working examples of every API call in the examples/
directory.
Contributions are welcome!
Library created with Libninja.