-
Notifications
You must be signed in to change notification settings - Fork 42
fix(Case Management): re-gen service and add examples #80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## main #80 +/- ##
=======================================
Coverage 93.58% 93.58%
=======================================
Files 21 21
Lines 19771 19771
=======================================
Hits 18503 18503
Misses 1268 1268
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Just one comment about how to print out the result of "download_file".
file = response.get_result() | ||
|
||
print('Attachment content-type:', response.get_headers()['content-type']) | ||
print('Attachment contents:', file) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll need to do something slightly different to print out the contents of the downloaded "file". When I run the examples, i get this output:
Attachment content-type: application/octet-stream
Attachment contents: <Response [200]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are totally right. I forgot to check the verbose logs. With the modification I have just pushed it looks like this:
Attachment contents: b'This is the content of the file to upload.
WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
🎉 This PR is included in version 0.17.9 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
PR summary
This PR adds examples to the Case Management service.
PR Checklist
Please make sure that your PR fulfills the following requirements:
PR Type
What is the current behavior?
What is the new behavior?
Does this PR introduce a breaking change?
Other information