#client #spec #generated #open-api #model #paper-mc-client

papermc

PaperMc client, generated from the OpenAPI spec

1 unstable release

0.1.0 Jul 19, 2023

#123 in #spec

MIT license

27KB
580 lines

Stars Build Status Downloads Crates.io

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