1 unstable release
0.1.0 | Jul 19, 2023 |
---|
#123 in #spec
27KB
580 lines
PaperMC client, generated from the OpenAPI spec.
Usage
use papermc::PaperMcClient;
use papermc::model::*;
#[tokio::main]
async fn main() {
let client = PaperMcClient::from_env();
let response = client.projects().await.unwrap();
println!("{:#?}", response);
}
This example loads configuration from environment variables, specifically:
Installation
Add this to your Cargo.toml:
[dependencies]
papermc = "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.
Dependencies
~10–24MB
~411K SLoC