-
Notifications
You must be signed in to change notification settings - Fork 2
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
adapter.http: implement the attachment routes #33
adapter.http: implement the attachment routes #33
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.
Most of my comments are just "use get_response_type()
", so it should be easily implemented. While Response()
it the correct type to use when returning values of Blob
elements with the appropriate content_type
, get_response_type()
should be used in all other cases, as it automatically determines whether the client prefers a JSON or an XML response (e.g. for error messages).
Furthermore, you should use the "Return Early" pattern whenever possible. As already stated in several comments, I think the attachment routes shouldn't support File
objects for now, at least not with unsanitized paths.
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 👍
No description provided.