Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/onlivfe/resonite_rs
Resonite API rust crate (unofficial)
https://github.com/onlivfe/resonite_rs
api-client resonite resonite-api rust rust-crate rust-lang rust-library
Last synced: about 1 month ago
JSON representation
Resonite API rust crate (unofficial)
- Host: GitHub
- URL: https://github.com/onlivfe/resonite_rs
- Owner: onlivfe
- License: mpl-2.0
- Created: 2023-09-23T12:57:57.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-23T12:58:15.000Z (about 1 year ago)
- Last Synced: 2024-04-26T14:40:34.243Z (8 months ago)
- Topics: api-client, resonite, resonite-api, rust, rust-crate, rust-lang, rust-library
- Language: Rust
- Homepage: https://docs.rs/resonite
- Size: 83 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Resonite API in rust
[![License](https://img.shields.io/crates/l/resonite.svg)](https://github.com/onlivfe/resonite_rs/src/LICENSE)
[![Crates.io](https://img.shields.io/crates/v/resonite.svg)](https://crates.io/crates/resonite)
[![Docs](https://docs.rs/resonite/badge.svg)](https://docs.rs/crate/resonite/)Rust models of [Resonite's](https://resonite.com) API.
Any official documentation of Resonite' API is lacking, and the API is still changing too.
So this crate can't guarantee correctness.This crate provides an example API client with the optional `http_client` & `signalr_client` features.
## Testing
The integration tests will contact the live API.
That's why they are ignored by default.Some of them also will require authentication.
Sadly not all the things can even be reliably tested without creating a mock API.
Which in turn defeats the purpose of the tests in the first place.### Generating auth token
To dogfed the API crate, the auth getting is implemented with a simple rust script using this crate itself.
You can run the binary with:```sh
cargo run --bin auth-helper --all-features
```### Running ignored tests
Make sure that you've got:
- an internet connection
- a valid authentication fileThen just run the tests;
```sh
# A specific test with output logging
cargo test --all-features get_user -- --exact --ignored --nocapture
# All tests
cargo test --all-features -- --ignored
```## License
Note that the license is `MPL-2.0` instead of the more common `MIT OR Apache-2.0`.
A license change however can be negotiated if the Resonite team wants to use this crate or adopt this crate into a more official one with a different license.