2 releases

0.1.0-alpha.2 Jan 6, 2021

#1565 in Web programming

Download history 22/week @ 2024-02-18 50/week @ 2024-02-25 33/week @ 2024-03-03 10/week @ 2024-03-10 2/week @ 2024-03-17

104 downloads per month

Apache-2.0

300KB
5.5K SLoC

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.

Dependencies

~5–18MB
~267K SLoC