Restructured the flat file for http client and upload service client.
Create a Base Upload Client: I Moved common functionality for handling file uploads to a new base class (BaseUploadClient). This class will be the parent class for the upload service client.
Token Authentication: I created a new file for managing token authentication logic, including obtaining and refreshing tokens.
Utility Functions: Create a new file for utility functions such as handling file chunking and parameter generation.
Upload Service Client: Modify the upload service cliento inherit from the BaseUploadClient and token authentication
This restructuring will make it easier to add new upload endpoints in the future and improve the maintainability of the code.
How to review
Run all Tests: Type Make test in the terminal.
Sanity check - Check all the logic is correct and if this is the right approach
Any Suggestions for further improvement
What
Restructured the flat file for http client and upload service client.
This restructuring will make it easier to add new upload endpoints in the future and improve the maintainability of the code.
How to review
Run all Tests: Type
Make test
in the terminal. Sanity check - Check all the logic is correct and if this is the right approach Any Suggestions for further improvementWho can review
Anyone