Closed aaravm closed 4 months ago
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.
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. |
Here,
Summary by Sourcery
This pull request introduces two new structs:
Configuration
for storing API request details andTransport
for making HTTP requests using thereqwest
library. It also includes unit tests for theTransport
struct.Configuration
struct to store key details of API requests, including base path, user agent, authentication, and API key information.Transport
struct that utilizes theConfiguration
struct and areqwest::Client
to facilitate making GET, POST, PUT, and DELETE HTTP requests.Transport
struct to verify the functionality of HTTP methods using themockito
library.