elixir-cloud-aai / ga4gh-sdk

Generic SDK and CLI for GA4GH API services
Apache License 2.0
13 stars 2 forks source link

feat: adding configuration and transport structs #23

Closed aaravm closed 4 months ago

aaravm commented 4 months ago

Here,

Summary by Sourcery

This pull request introduces two new structs: Configuration for storing API request details and Transport for making HTTP requests using the reqwest library. It also includes unit tests for the Transport struct.

sourcery-ai[bot] commented 4 months ago

Reviewer's Guide by Sourcery

This pull request introduces two new structs, Transport and Configuration, to manage API requests and configurations. The Transport struct includes methods for making HTTP GET, POST, PUT, and DELETE requests using the reqwest library. The Configuration struct stores key details for API requests, including authentication information. Unit tests for the Transport struct are also included.

File-Level Changes

Files Changes
lib/src/transport.rs
lib/src/configuration.rs
Introduced new Transport and Configuration structs to manage API requests and configurations, including methods for HTTP operations and authentication handling.

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - Continue your discussion with Sourcery by replying directly to review comments. - You can change your review settings at any time by accessing your [dashboard](https://app.sourcery.ai): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.