This PR includes the following proposed change(s):
Added proper error handling for the get document endpoint if the request fails to respond with proper base64 document string.
Also added unit tests for controller and service to cover some potential responses that the endpoint may return and validate if they are handled properly.
Type of change
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Refactoring / Documentation
if your change is a breaking change, please add breaking change label to this PR
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[x] New and existing unit tests pass locally with my changes
Description
This PR includes the following proposed change(s):
Type of change
if your change is a breaking change, please add
breaking change
label to this PRHow Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: