-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add AssetFile endpoint for retrieving file streams #36
Conversation
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.
Some questions, but looking good.
Add some documentation to the new endpoint.
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.
I talked this through with @apotek and I think I'm sold. ✅
@adamzimmermann It looks like your approval doesn't count. @agarzola would you be able to rubber stamp this knowing that Adam and I have discussed this extensively and he approved it. |
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.
Approving this based on Adam's approval and changes made in response to his previous review questions.
Resolves #35
Description
This merge request adds a new Endpoint for retrieving file streams. Some file formats, such as watermarked assets, do not return a URL via the AssetLink Endpoint. In order to handle assets that have not been pre-generated and do not have a link, we need to use the AssetFile endpoint
/webapi/mediafile/assetfile/getassetfile_42R_v1
.We also need to refactor the Response object to no longer assume all responses have JSON data. The Response object can contain a stream resource with binary data instead, so decoding the body will throw an exception.
This is a requirement/blocker for this
orange_dam
issue: https://www.drupal.org/project/orange_dam/issues/3451497