opsgenie-rs

Crates.ioopsgenie-rs
lib.rsopsgenie-rs
version0.1.0-alpha.2
sourcesrc
created_at2021-01-06 08:12:22.148719
updated_at2021-01-06 09:10:29.003428
descriptionRust client for OpsGenie API
homepagehttps://github.com/vladvasiliu/opsgenie-rs
repositoryhttps://github.com/vladvasiliu/opsgenie-rs
max_upload_size
id332953
size297,736
Vlad Vasiliu (vladvasiliu)

documentation

README

opsgenie-rs

This is an unofficial Rust client for OpsGenie API v2.

The client is autogenerated from the OpenAPI definition found in the OpsGenie Python SDK repository.

This library is still in its early stages. The interface could change at any time.

It currently uses reqwest for HTTP calls, but I'm looking into converting this to bring-your-own-http-client.

OpsGenie also provide a repository for the OpenAPI specification, but it doesn't compile.

Generation

The client is generated with OpenAPI Generator v5.0.

java -jar openapi-generator-cli-5.0.0.jar generate \
  --input-spec opsgenie-oas.yml \
  --generator-name rust \
  --config generator.json \
  --type-mappings=DateTime="chrono::DateTime<chrono::offset::Utc>",Date="chrono::Date<chrono::offset::Utc>" \
  --import-mappings="chrono::DateTime<chrono::offset::Utc>",Date="chrono::Date<chrono::offset::Utc>"

Documentation for API Endpoints

See DOCS.md for the autogenerated API documentation.

The official OpsGenie API documentation may come in handy, too.

License

This project is distributed under the terms of the Apache License 2.0. Please see LICENSE for the full text.

Commit count: 15

cargo fmt