Skip to content

Conversation

@Frosty2500
Copy link

@Frosty2500 Frosty2500 commented Mar 17, 2024

Adds URl-Base64 decoding, semanticId filtering and the level specification in the API (core/deep).
Also adds all metadata and reference routes.

@Frosty2500 Frosty2500 changed the title adapter.http: implement semanticId filtering adapter.http: implement semanticId filtering and metadata routes Mar 17, 2024
@Frosty2500 Frosty2500 changed the title adapter.http: implement semanticId filtering and metadata routes adapter.http: implement submodel repo routes Mar 17, 2024
Copy link

@jkhsjdhjs jkhsjdhjs left a 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 👍

Copy link

@jkhsjdhjs jkhsjdhjs left a 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.

Copy link

@jkhsjdhjs jkhsjdhjs left a 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 👍

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)

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.

Copy link

@jkhsjdhjs jkhsjdhjs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@jkhsjdhjs jkhsjdhjs merged commit b53783a into feature/http_api Mar 20, 2024
@jkhsjdhjs jkhsjdhjs deleted the http_api/semanticIdfiltering branch April 1, 2024 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants