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

papermc

PaperMc client, generated from the OpenAPI spec

1 unstable release

0.1.0 Jul 19, 2023

#135 in #spec

MIT license

28KB
622 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
~415K SLoC