-
Notifications
You must be signed in to change notification settings - Fork 3
adapter.http: implement submodel repo routes #22
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
jkhsjdhjs
left a comment
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 pretty good overall, just a few things I would change 👍
jkhsjdhjs
left a comment
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.
Just a few minor comments to fix typing and naming.
jkhsjdhjs
left a comment
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.
One final comment, LGTM otherwise 👍
basyx/aas/adapter/http.py
Outdated
| parent.append(response_elem) | ||
| etree.cleanup_namespaces(parent) | ||
| return etree.tostring(response_elem, xml_declaration=True, encoding="utf-8") | ||
| return etree.tostring(response_elem, xml_declaration=True, encoding=BASE64URL_ENCODING) |
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 shouldn't use BASE64URL_ENCODING here, since this is only used for encoding XML, which is independent of the base64url encoding.
jkhsjdhjs
left a comment
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 👍
Adds URl-Base64 decoding, semanticId filtering and the level specification in the API (core/deep).
Also adds all metadata and reference routes.