4 个版本 (主要破坏性更改)
3.0.0 | 2022年11月27日 |
---|---|
2.0.0 | 2022年10月21日 |
1.0.0 | 2022年10月14日 |
0.1.0 | 2020年11月23日 |
在 Web 编程 中排名第 2474
155KB
3K SLoC
Postman 客户端,由 OpenAPI 规范生成。
用法
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);
}
此示例从环境变量中加载配置,特别是
POSTMAN_API_KEY
安装
将此添加到您的 Cargo.toml 中
[dependencies]
postman = "1.0.0"
文档
您可以在 examples/
目录中查看每个 API 调用的示例。
贡献
欢迎贡献!
使用 Libninja 创建的库。
依赖项
~15–27MB
~548K SLoC