Incident.io Ruby SDK
A comprehensive Ruby SDK for interacting with the incident.io API, generated using OpenAPI Generator. This SDK provides full coverage of the REST API endpoints to integrate with the incident.io platform.
Table of Contents
- Installation
- Usage
- Development
- Testing
- Contributing
- License
Installation
To install the gem, run the following command:
gem install incident_io_sdk
Alternatively, you can add it to your Gemfile
:
gem 'incident_io_sdk', '~> 0.1.3'
Then run:
bundle install
Usage
Initialization
First, you'll need to configure the SDK with your access token:
require 'incident_io_sdk'
config = IncidentIoSdk::Configuration.new
config.access_token = api_key
client = IncidentIoSdk::ApiClient.new(config)
Making Requests
Once the client is initialized, you can use it to interact with the API:
# Example: Fetching schedule entries
api = IncidentIoSdk::SchedulesV2Api.new(client)
response = api.list_schedule_entries(SCHEDULE_ID, opts)
Available Endpoints
For full usage examples, refer to the documentation.
Development
Prerequisites
Ensure that you have the following installed:
- Ruby (>= 2.7)
- Bundler (install with
gem install bundler
) - Dependencies can be installed with:
bundle install
Running the Development Server
For development purposes, you can run the SDK in a local environment:
-
Clone the repository:
git clone https://github.com/mustafabayar/incident-io-sdk.git cd incident-io-sdk
-
Install dependencies:
bundle install
Testing
To run the test suite:
bundle exec rspec
This will run all tests under the spec
directory.
Contributing
We welcome contributions! If you'd like to help improve this SDK, please follow these steps:
- Fork the repository
- Create a new branch for your feature or fix
- Write tests and documentation as needed
- Ensure all tests pass
- Submit a pull request
Please make sure to update tests as appropriate.
License
This project is licensed under the MIT License - see the LICENSE file for details.