Closed aaravm closed 3 months ago
This pull request introduces two new structs: Configuration
for storing API request details and Transport
for making HTTP requests using the reqwest
library. The Transport
struct includes methods for GET, POST, PUT, and DELETE requests, and is tested using the mockito
library. The Configuration
struct handles base path, user agent, and various authentication methods.
Files | Changes |
---|---|
lib/src/transport.rs lib/src/configuration.rs |
Introduced Configuration and Transport structs to manage API request details and HTTP requests, respectively. Added unit tests for Transport . |
@uniqueg, I think this PR can be merged now. Please mention if you think any other change should be made..
I have merged this PR, as it doesn't really depend on any other PR, and will be moving these structs to utils
folder to utils in #35
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.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.