Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/libninjacom/paper-mc-rs
PaperMC client, generated from the OpenAPI spec
https://github.com/libninjacom/paper-mc-rs
openapi paper-mc rust
Last synced: 6 days ago
JSON representation
PaperMC client, generated from the OpenAPI spec
- Host: GitHub
- URL: https://github.com/libninjacom/paper-mc-rs
- Owner: libninjacom
- License: mit
- Created: 2022-10-02T11:06:47.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-20T12:22:56.000Z (about 2 years ago)
- Last Synced: 2024-10-06T19:48:07.842Z (about 1 month ago)
- Topics: openapi, paper-mc, rust
- Language: Rust
- Homepage: https://docs.rs/paper-mc/
- Size: 6.84 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
PaperMC client, generated from the OpenAPI spec.
# Usage
```rust
use paper_mc::PaperMcClient;
use paper_mc::model::*;
#[tokio::main]
async fn main() {
let client = PaperMcClient::from_env();
let response = client.projects().send().await.unwrap();
println!("{:#?}", response);
}```
This example loads configuration from environment variables, specifically:
* `PAPER_MC_BASE_URL`
# Installation
Add this to your Cargo.toml:
```toml
[dependencies]
paper-mc = "0.1.0"
```# Documentation
* [Client Library Documentation](https://docs.rs/paper-mc)
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).*