Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/libninjacom/postman-rs
Postman client, generated from the OpenAPI spec
https://github.com/libninjacom/postman-rs
openapi postman rust
Last synced: 28 days ago
JSON representation
Postman client, generated from the OpenAPI spec
- Host: GitHub
- URL: https://github.com/libninjacom/postman-rs
- Owner: libninjacom
- License: mit
- Created: 2022-09-29T21:50:28.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-27T17:11:15.000Z (almost 2 years ago)
- Last Synced: 2024-10-09T05:48:45.373Z (about 1 month ago)
- Topics: openapi, postman, rust
- Language: Rust
- Homepage: https://docs.rs/postman-api/
- Size: 98.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
Postman client, generated from the OpenAPI spec.
# Usage
```rust
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:
```toml
[dependencies]
postman = "1.0.0"
```# Documentation
* [API Documentation](https://www.postman.com/postman/workspace/postman-public-workspace/documentation/12959542-c8142d51-e97c-46b6-bd77-52bb66712c9a)
* [Client Library Documentation](https://docs.rs/postman)
You can see working examples of every API call in the `examples/` directory.
# Contributing
Contributions are welcome!
*Library created with [Libninja](https://www.libninja.com).*